Default Query criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a database where there is one field where each month the criteria
changes but stays constant for that whole month. For instance, during october
I'd want to always be searching for and entering data that deals with
Pumpkins (stored somewhere else in a separate table) But next month I'll want
that default to be chairs, or something of that nature. Is there a way I can
set a default value that queries will always know to use so I can set it once
a month and not be always entering "pumpkins".

Thoughts? Thank you in advance
 
Make a criteria table (ID, Criteria) with 1-12 in the ID and your
criteria in Criteria. Then in the criteria of your field in your
query, put
Dlookup("Criteria", "YourCriteriaTable", "ID = " & Month(Date()))

Hope that helps!
 
Back
Top