Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Parameter in Macro

Status
Not open for further replies.

alectek

Programmer
Jul 9, 2003
68
0
0
US
Hi!
I'm using MS Access 2003.
I create the Macro to run bunch of queries. All of them have the same field [svs.date], and for all of them I want to set this field to the same value. Let's say [svs.date] >= #7/1/2006#. Any way, I can do it in a Macro.
Thank you very much for help.
Alec.


Thanks.
Alec.
 
Are you trying to update everything in a table to have the same SVS.Date or update each query so that it uses the specific svs.date?

Professor: But what about your superintelligence?
Gunther: When I had that there was too much pressure to use it. All I want out of life is to be a monkey of moderate intelligence who wears a suit. That's why I've decided to transfer to Business School.
Professor: NOOOOOOOOOOOO.
 



Hi,

You're not clear. Do you have a textbox with the date?
Code:
SQL = "Select .....
"From .....
"Where.....
"  and [svs.date] >=# " & DateTextbox.value & "#"


Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top