Hi
I have a really simple Syntax Error regarding a date that is really giving me the irrates...... It's one of those things you just keep looking over the error.
[CODE=vb]Set db = CurrentDb()
lsql = "SELECT Tbl_EnvelopesRe ceived.Date, Tbl_EnvelopesRe ceived.Envelope sReceived From Tbl_EnvelopesRe ceived WHERE (((Tbl_Envelope sReceived.Date) '" & CDate(Txt_Date) & "'));"
Set lrs = db.openrecordse t(lsql)
End Sub[/CODE]
I have tried everything different possibilty with the date and the error still occurs.
I would really appreciate some assistance in sorting this one out.
Thank you so much for your help
AK
I have a really simple Syntax Error regarding a date that is really giving me the irrates...... It's one of those things you just keep looking over the error.
[CODE=vb]Set db = CurrentDb()
lsql = "SELECT Tbl_EnvelopesRe ceived.Date, Tbl_EnvelopesRe ceived.Envelope sReceived From Tbl_EnvelopesRe ceived WHERE (((Tbl_Envelope sReceived.Date) '" & CDate(Txt_Date) & "'));"
Set lrs = db.openrecordse t(lsql)
End Sub[/CODE]
I have tried everything different possibilty with the date and the error still occurs.
I would really appreciate some assistance in sorting this one out.
Thank you so much for your help
AK
Comment