A
Antonio
Dim WrDate as String
Dim BgDate as Date
WrDate = "01/01/" & Me!TextYear & ""
BgDate = WrDate
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * FROM Invoices WHERE
BILLDT > ' & #BgDate# & '")
I Have tried all methods to see if my billing date is
greater than the date entered.
WHERE BILLDT > '" & #BgDate# & "'
WHERE BILLDT > " & #BgDate# & "
WHERE BILLDT > '" & BgDate & "'
WHERE BILLDT > " & BgDate# & "
WHERE BILLDT > ' & BgDate & ' , Etc
I keep getting a syntax error but I do not work with Date
fields hardly at all.
WHERE BILLDT > #08/01/03# This works.
Does anyone know what the syntax is for just selecting
records based on dates using SQL?
Thank You in advance.
Antonio
Dim BgDate as Date
WrDate = "01/01/" & Me!TextYear & ""
BgDate = WrDate
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * FROM Invoices WHERE
BILLDT > ' & #BgDate# & '")
I Have tried all methods to see if my billing date is
greater than the date entered.
WHERE BILLDT > '" & #BgDate# & "'
WHERE BILLDT > " & #BgDate# & "
WHERE BILLDT > '" & BgDate & "'
WHERE BILLDT > " & BgDate# & "
WHERE BILLDT > ' & BgDate & ' , Etc
I keep getting a syntax error but I do not work with Date
fields hardly at all.
WHERE BILLDT > #08/01/03# This works.
Does anyone know what the syntax is for just selecting
records based on dates using SQL?
Thank You in advance.
Antonio