Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing criteria for a Delete Query

Status
Not open for further replies.

GussyBoy

IS-IT--Management
Mar 11, 2003
96
BS
I am creating a delete query where I want to delete data from table that is based on a particular field/object on my form. The string in this field/object changes everytime the query is to be ran. The query works fine when I put an actual string in the criteria. How can I reference the data in this field/object on my form to the criteria section of my query so that the data is deleted based whatever string is on my form?

Please help.
 
The usual way is to say
Forms![NameOfForm].[NameOfControl]
But that comes with a good few 'ifs'. You will need to include a little more information, if you have encountered one of these.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top