VB6 trying to Query MS Access on DATE?

  • Thread starter Thread starter jt
  • Start date Start date
J

jt

This is my sql statement in my vb6 code:

My date variable name is, Fax_Today_Date devired by cdate(string)

Set rs = db.OpenRecordset("SELECT * from psusa WHERE PSUSA.fax_today and
PSUSA.Call_Date = Fax_Today_Date")

I get an error when it tries to execute. "Too few parameters. Expected
1.Error: 3061"

What am I doing wrong?

Thanks,
jt
 
JT,

You got your answer from Earl with what is nothing wrong.

However, this is a language newsgroup for VB.Net which has something to do
with both the subjects you wrote as it has to do with everything about
computing.

However better newsgroups for your question are the specialized SQL or
VB.classic newsgroups.

The last are
Microsoft.public.vb (there are a bunch)

I hope this helps in future

Cor
 
jt said:
This is my sql statement in my vb6 code:

Note that this is a VB.NET group. For VB6+database-related questions
consider posting to one of the groups in the
'microsoft.public.vb.database[.*]' groups hierarchy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top