Parameter Query - ms access 97 question

S

Salisha Khan

I have this query that i have created using the query design view. One of
my field is a date field and teh criteria for that field is as follows:
Between [Type the beginning date:] And [Type the ending date:] So basically
two pop up boxes come up prompting the user for a Beginning DAte and Ending
Date. Is there any way that I can put two default dates in the two pop up
boxes. So for example the user did not feel like entering any dates, I can
default the beginnign date to 1/1/1990 and the Ending Date to 1/1/2003.....
Any help will be appreciated.
Thanks
Salisha
 
J

John Spencer (MVP)

What you can do is use the NZ function and return default dates, but they won't
show in parameter box.

Between NZ([Beginning Date (blank = 1/1/1990)],#1/1/1990#) AND ...

[MVP] S. Clark said:
No.

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Salisha Khan said:
I have this query that i have created using the query design view. One of
my field is a date field and teh criteria for that field is as follows:
Between [Type the beginning date:] And [Type the ending date:] So basically
two pop up boxes come up prompting the user for a Beginning DAte and Ending
Date. Is there any way that I can put two default dates in the two pop up
boxes. So for example the user did not feel like entering any dates, I can
default the beginnign date to 1/1/1990 and the Ending Date to 1/1/2003.....
Any help will be appreciated.
Thanks
Salisha
 
S

Salisha Khan

Thank you very much. I will do that.
Salisha

John Spencer (MVP) said:
What you can do is use the NZ function and return default dates, but they won't
show in parameter box.

Between NZ([Beginning Date (blank = 1/1/1990)],#1/1/1990#) AND ...

[MVP] S. Clark said:
No.

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Salisha Khan said:
I have this query that i have created using the query design view. One of
my field is a date field and teh criteria for that field is as follows:
Between [Type the beginning date:] And [Type the ending date:] So basically
two pop up boxes come up prompting the user for a Beginning DAte and Ending
Date. Is there any way that I can put two default dates in the two pop up
boxes. So for example the user did not feel like entering any dates,
I
can
default the beginnign date to 1/1/1990 and the Ending Date to 1/1/2003.....
Any help will be appreciated.
Thanks
Salisha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Default Dates 2
Parameter question 1
Parameter Query 1
Between Dates Parameter Query 7
Parameter Queries in Crosstab Query 2
Date Parameters Irritation 5
Parameter Values prompted for twice 5
Double dates 2

Top