L
Linda
I'm really confused. I have two databases which use similar code to build a
select statement. One has been working (DB1), the other has not(DB2). As I
was debugging DB2, I brought up DB1 to compare the VB code. Suddenly DB1
started showing the same error. I tried DB1 on another computer and it still
works fine there. The database resides on a network server so I am testing
the same code. The error message is :
Run-time error 3075
Syntax error in date in query expression '[SR Number]='09-0035' AND [Date]
BETWEEN #_/_/_# AND #_/_/_'.
The code looks like:
sWhereClause = sWhereClause & " AND [Date] BETWEEN #" & _
sStart & "# AND #" & sEnd & "#"
I've looked at regional settings on both computers and they are the same.
Any ideas of what might be different between the computers to make this run
differently or what might change underfoot so that the code works and then
suddenly doesn't on the same machine?
Thanks in advance for your help.
select statement. One has been working (DB1), the other has not(DB2). As I
was debugging DB2, I brought up DB1 to compare the VB code. Suddenly DB1
started showing the same error. I tried DB1 on another computer and it still
works fine there. The database resides on a network server so I am testing
the same code. The error message is :
Run-time error 3075
Syntax error in date in query expression '[SR Number]='09-0035' AND [Date]
BETWEEN #_/_/_# AND #_/_/_'.
The code looks like:
sWhereClause = sWhereClause & " AND [Date] BETWEEN #" & _
sStart & "# AND #" & sEnd & "#"
I've looked at regional settings on both computers and they are the same.
Any ideas of what might be different between the computers to make this run
differently or what might change underfoot so that the code works and then
suddenly doesn't on the same machine?
Thanks in advance for your help.