Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / November 2006

Tip: Looking for answers? Try searching our database.

append delete query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
crhp917 - 25 Nov 2006 04:07 GMT
i wrote an append and a delete query for a table to move and delete records
by looking up the name field in a record by the statement like 'Enter Name".  
i combined the two queries into a macro.  i am looking for a way to only type
in the name one time to run both queries on the macro.  as it is now, i have
to type the name in twice, once for each query.  any help would be greatly
appreciated.

joe
Steve Schapel - 25 Nov 2006 07:36 GMT
Joe,

Put an unbound textbox on a form, and enter the criteria in here.  In
both the Append Query and Delete Query, replace the existing parameter
prompt with a reference to the textbox, using syntax such as...
 [Forms]![NameOfForm]![NameOfTextbox]

By the way, as an aside, 'name' is a Reserved Word (i.e. has a special
meaning) in Access, and as such should not be used as the name of a
field or control.  I recommend you change this.

Signature

Steve Schapel, Microsoft Access MVP

> i wrote an append and a delete query for a table to move and delete records
> by looking up the name field in a record by the statement like 'Enter Name".  
[quoted text clipped - 4 lines]
>
> joe
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.