Add query criterial using VB

wschian

Registered User.
Local time
Today, 14:33
Joined
Dec 12, 2013
Messages
19
Hi!
i have a query name "Query01". I want to add a criteria ">=#1/5/2015#" in the field of "PaymentDate" using VBA. Anyone can help me?
 
Last edited:
2 questions: Why? and How?

1. Why don't you just use the design view and do it that way.

2. How do you intend to use it via VBA? VBA works as an event--action in the database triggers the code. What action is to trigger this and what exactly do you want as the result? I mean user clicks and button and it writes that code to the query but does nothing else? More context please.
 

Users who are viewing this thread

Back
Top Bottom