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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get criteria in my queries to refer to a form?

Status
Not open for further replies.

LMcleod

IS-IT--Management
Feb 18, 2003
30
US

Hi,

I'm not familiar with forms in Access. I have designed one called parameters with the intent to use it as a 'criteria' form i.e have users type in their criteria on the form, and my queries to read off the criteria selected in the form.

I tried putting [forms]![parameters].[Start Date] in the criteria in my query, but Access doens't like it. [Start Date] is simply a Label in my form, if this makes a difference.

Any help would be much appreciated.

Thanks

 
I have the following criteria entered in a query:

Code:
Between [Forms]![frmAccountReports]![txtDateFrom] And [Forms]![frmAccountReports]![txtDateUntil]

Basically it refers to two fields on the form frmAccountReports..

Try changing your
Code:
[forms]![parameters].[Start Date]
to
Code:
[forms]![parameters]![Start Date]

(Exclaimation mark before start date!)

Good luck.
 

Silly me! I didn't name my Text Boxes!!
 
Thanks for your help Simon - just made a silly mistake.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top