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

Range Parameter Query ... to give range or all records

Status
Not open for further replies.

lgvelez

Technical User
Jun 6, 2000
108
US
I have asked this before, but have not been able to get anything to work. In a standard parameter query, created within the query grid, I can make a parameter query that will either match the parameter, or with no input, list all of the records. How do you do the same thing within a parameter range query within the query grid? (Between [First Date] and [Second Date])

Thanks.
Laura Velez
lauravelez@home.com

 
Not sure what you are asking. you are very close

if you just put this
Between [First Date] AND [Second Date]
in your date field it should work

run the query and it will ask for "First Date"
then ask for "Second Date"
key in valid dates and make sure you are keying in dates that are in your Table
then you should get results between those two dates but not including them.


DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
Or visit my WEB site
 
Sorry for not being clear ... but what I want to do is NOT key in any info when requested, but to just press Enter twice, and get ALL the info. So far, I can do that with a single parameter input, but not with a parameter query needing 2 pieces of info.
Laura Velez
lauravelez@home.com

 
I made two finction once so nothing had to be keyed at all.
I put them in the between statements like so

Between LastMonday() And LastFriday()

the functions figured out what Date, Last Monday and Last Friday was based on the system date today
So we got a report of Invoices for last week. DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
Or visit my WEB site
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top