I have a database in ms.access,
I want to retrieve data in the database is based on today's date. I have a query like this.
but when I run this program, it is error.
'Variable not defined'
Can anyone hel me to fix this error
Regards,
Octo
I want to retrieve data in the database is based on today's date. I have a query like this.
but when I run this program, it is error.
'Variable not defined'
Code:
QuerySelect = "SELECT a.DN, b.DIN, c.PIN, c.UserName, b.Clock, d.ItemName " & _
"FROM ((ras_Device a INNER JOIN ras_AttRecord b ON a.DN=b.DN) " & _
"LEFT JOIN ras_Users c ON b.DIN=c.DIN) " & _
"LEFT JOIN ras_AttTypeItem d ON b.AttTypeId=d.ItemId " & _
"WHERE b.DIN=c.DIN AND '" & Format(b > *error,block area.Clock, "mm/dd/yyyy") & "'='" & _
Format(um_TglDanJamSkrg, "mm/dd/yyyy") & "'"
Set rsDataRAS = da_GetRs(QuerySelect)
Regards,
Octo
Comment