Help with filtering query based on form

Angel69

Registered User.
Local time
Today, 07:25
Joined
Jun 11, 2013
Messages
86
I have a form named form1. In the form I have two unbound text boxes formated as general date; startdate and enddate are the text box names. In my query criteria for the ContactDateTime field I put the following code
Code:
[Forms]![Form1]![StartDate] And [Forms]![Form1]![EndDate]

When I run it I don't get any results. So it runs but no records come up. I have about five queries that run when I click a button and I want to be able to just select start and end dates once on the form and have all the quieries run. Any idea what I'm doing wrong? TIA
 
In the criteria you want:

Between [Forms]![Form1]![StartDate] And [Forms]![Form1]![EndDate]
 
In the criteria you want:

Between [Forms]![Form1]![StartDate] And [Forms]![Form1]![EndDate]


Ahh, good eye! Thank you!
 

Users who are viewing this thread

Back
Top Bottom