Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


How to Eliminate "[Enter Start Date] And [Enter End Date]" x4

How to Eliminate "[Enter Start Date] And [Enter End Date]" x4

Good afternoon, I have inherited a query that prompts for start and end period dates. Now, right or wrong, I would normally just hard-code these in a query (because when I'm learning about what a query does and how it works, I'll be swapping between Design and Output modes) but in this case there are 4 lines of "or" criteria. Is it possible to have just one place where I can hard-code the required dates and then reference this within those criteria lines? It drives me nuts having to enter these dates each time when I'm figuring out the query.

Many thanks,

RE: How to Eliminate "[Enter Start Date] And [Enter End Date]" x4

If there is a series of queries with the same parameters, you can build one row table with dates and add it to query without linking.
4 lines with criteria may be hard to handle, sometimes it is easier to add helper fields with formulas that return TRUE or FALSE with one line criteria set tu TRUE (or FALSE).


RE: How to Eliminate "[Enter Start Date] And [Enter End Date]" x4

Hi Duane, I've successfully created a Form and Start & End boxes as outlined in your FAQ; however I still have to enter those dates every time I run the Query, despite having given them both Default Values and input masks. Is there any way that I could populate them once, at least for when I'm 'testing' the query?

Many thanks,

RE: How to Eliminate "[Enter Start Date] And [Enter End Date]" x4

If your form stays open you only need to enter the values once. I guess I don't understand your current application and how you are using the values.

Hook'D on Access
MS Access MVP 2001-2016

RE: How to Eliminate "[Enter Start Date] And [Enter End Date]" x4


Did you modify your query to look at the Start/End dates on the new form for all 4 critieria?

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close