UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Start Date and End Date in a Form    
 
   
duration
post Nov 22 2005, 11:14 AM
Post #1

UtterAccess Enthusiast
Posts: 76



Hello, I have a form, that gets its data from a query (Q2) using a summary, which gets its data from another query (Q1).

To filter the data by start and end data, I go in Q1 and add some criteria in the field where date records are stored.

Is there anyway I could implement this in the form, so that you have two text boxes, one for start date, one for end date, you fill the boxes with the dates you want and it automatically filter the data?

Or is there any tutorial that could teach me how to do it?

Thank you very much,
Go to the top of the page
 
+
freakazeud
post Nov 22 2005, 11:21 AM
Post #2

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
add the two textboxes and then reference the controls in the criteria of your query:

BETWEEN [Forms]![YourForm]![YourStartControl] AND [Forms]![YourForm]![YourEndControl]

The form has to be open and the controles filled for this to work when the query runs.

HTH
Good luck
Go to the top of the page
 
+
dashiellx2000
post Nov 22 2005, 11:26 AM
Post #3

UtterAccess VIP
Posts: 9,209
From: Maryland



Check out this link for info on Query by Form.
Go to the top of the page
 
+
duration
post Nov 22 2005, 11:43 AM
Post #4

UtterAccess Enthusiast
Posts: 76



Thank you very much! It works fine.

Is there any way you enter the values using a user friendly drop down menu?
Go to the top of the page
 
+
dashiellx2000
post Nov 22 2005, 12:00 PM
Post #5

UtterAccess VIP
Posts: 9,209
From: Maryland



Yes, you can create a combo box that lists the dates on the form.
Go to the top of the page
 
+
freakazeud
post Nov 22 2005, 02:25 PM
Post #6

UtterAccess VIP
Posts: 31,413
From: NC, USA



You're welcome.
Glad I could assist.
Good luck on future projects!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 20th June 2013 - 07:37 AM