ECEstudent
Registered User.
- Local time
- Today, 03:00
- Joined
- Jun 12, 2013
- Messages
- 153
Hi, My code keeps bring up an error every time I compile this:
"Run-time error '3061': Too few parameters. Expected 1."
Can someone please help? I'm not quite sure what the problem is but I think it might have to do with the fact that I'm using 2 AND in the statement below. How can I format it so it would work? Thanks in advance!
Set rst = CurrentDb.OpenRecordset( _
"Select * from SerialNumberCustomer WHERE SerialCardId=" & varCod & " AND OrderDate BETWEEN #09/30/2001# AND #10/01/2012#")
"Run-time error '3061': Too few parameters. Expected 1."
Can someone please help? I'm not quite sure what the problem is but I think it might have to do with the fact that I'm using 2 AND in the statement below. How can I format it so it would work? Thanks in advance!
Set rst = CurrentDb.OpenRecordset( _
"Select * from SerialNumberCustomer WHERE SerialCardId=" & varCod & " AND OrderDate BETWEEN #09/30/2001# AND #10/01/2012#")