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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I want to take data from AX co

Status
Not open for further replies.

ersatz

Programmer
Oct 29, 2002
114
US
Hi,
I want to take data from AX column,from AX_dec table, for Date=Now():
My code is like that:

SQL = "SELECT AX from AX_dec where Date=Now()"
Set r0 = db.OpenRecordset(SQL, dbOpenDynaset)

I retrieve this error:
Run-time error '3061'
Too few paraameters.Expected one.

Can somebody help me?
Regards,
ersatz

 
If your database is access try:

SQL = "SELECT AX from AX_dec where Date=#"&Now()&"#"


for SQL Server:


SQL = "SELECT AX from AX_dec where Date='"&Now()&"'"
 
thanks very much mwolf00.
it work greate!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top