Passing Date From Form To Query

lhooker

Registered User.
Local time
Today, 16:46
Joined
Dec 30, 2005
Messages
423
Anybody see what is wrong with the content in my 'Testit' query criteria ? I'm trying to pass dates from a form (i.e. Date_Selected) to my query (i.e. By_Selected_Date_Query) ? The syntax used is below. Also, I've attached the database.

Between [Form]![Date_Selection]![StartDate] And [Form]![Date_Selection]![EndDate]
 

Attachments

Needs to be Forms - with an 's':

Between [Forms]![Date_Selection]![StartDate] And [Forms]![Date_Selection]![EndDate]
 
Your Between Statement should be:-

Code:
Between [Forms]![Date_Selection]![StartDate] And [Forms]![Date_Selection]![EndDate]
 
Last edited:
June7/Uncle Gizmo,

That did it . . . Thanks ! ! !
 
Can passing date with selection other field also...
(in account software sample )
begin date to end date
with
sales register bill paid days or unpaid due days (30 days or more then as user define)
 
I don't use dynamic parameterized queries. I prefer VBA to build filter criteria. Review http://allenbrowne.com/ser-62.html

Not quite sure what you are asking for now. If you need to determine which bills are unpaid and how long unpaid, that is invoice aging and rather complicated. Suggest you Google the topic.
 

Users who are viewing this thread

Back
Top Bottom