D
Dennis
Access 2003
What is the VBA code to change a criteria Filter in a Query?
For example, I have been attempting to:
In table "Utilities"
For Query "All to Date"
In Field "Amount"
Criteria "> 1,000"
If I had just one example, I could extrapolate to other Query Items. I just need a starting point.
Query.Filter = BuildCriteria("Amount", ?????, ">1000")
FilterOn
DAO.QueryDef is supposed to be read-only
would DAO.TableDef be better? I'm lost!
If there is a better way, I would appreciate at least some clues.
TIA Dennis
What is the VBA code to change a criteria Filter in a Query?
For example, I have been attempting to:
In table "Utilities"
For Query "All to Date"
In Field "Amount"
Criteria "> 1,000"
If I had just one example, I could extrapolate to other Query Items. I just need a starting point.
Query.Filter = BuildCriteria("Amount", ?????, ">1000")
FilterOn
DAO.QueryDef is supposed to be read-only
would DAO.TableDef be better? I'm lost!
If there is a better way, I would appreciate at least some clues.
TIA Dennis