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

New User!How do I tie textbox text into the expression of my query?

Status
Not open for further replies.

jc8317

Technical User
Sep 20, 2001
1
US
I have a form with an active x calendar control, a text box and command button.

I have a query designed, how can I click the command button to open my query using the Date in my text box.

I need to know what to use in the expression in my query to make it read whats in the text box.

I am querying by date.

any help would be much appreciated.



 
Forms!FormName![text box name] in the criteria of your date field.
 
Either try in the criteria in the query:

"#" & forms![nameOfForm]![Name of text box] & "#"

or just

forms![nameOfForm]![Name of text box]

Can't quite remember which one. The form will need to be open though for this though.

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top