Search Two dates Range (1 Viewer)

aftab1965

Registered User.
Local time
Today, 06:35
Joined
Jan 12, 2016
Messages
48
I have a query " request" having a field "date". I inserted 2 text boxes on a form and a command button to search record of a date range from query and print a report of search results.
Any one plz help my in this regard
 

bob fitz

AWF VIP
Local time
Today, 03:35
Joined
May 23, 2011
Messages
4,727
Use the Between operator and reference the two text boxes on the form in the criteria row of the date column in your query.

BTY: Date is a reserevd word and should not be used as a field name.
 

aftab1965

Registered User.
Local time
Today, 06:35
Joined
Jan 12, 2016
Messages
48
Thanks bob fitz
I am quite new in access, can you please help me by posting some coding for me?
 

bob fitz

AWF VIP
Local time
Today, 03:35
Joined
May 23, 2011
Messages
4,727
What is the name of the form and the name of the two text boxes.
What is the name of the date field in the query.
 

aftab1965

Registered User.
Local time
Today, 06:35
Joined
Jan 12, 2016
Messages
48
Name of the Form is " Result"
Text box 1 is " DateFrom" and Text box 2 is "DateTo"
Query Name is "QryDateRange" and Filed is "DateEnrol"
Report Name is "RptDateRange"
 

Users who are viewing this thread

Top Bottom