I have 4 criteria to be pass thru my dlookup(), and it seems I coded it wrong, my level in access is not that high so I'm asking your help with this.
criteria1 = combo1 (string data type)
criteria2 = text38 (value)
criteria3 = <> "12:00:00 AM" (date)
criteria4 = between [start] AND [end] (date)
Tablogs = Table Name
tccec_pc = fieldname from Tablogs
Here's my script:
Text474 = DLookup("tccec_pc", "TabLogs","criteria='" & forms!frmLog!combo17 _
& " AND criteria = '" & forms!frmLog!Text38 & "'" _
& " AND criteria <> "'" & 12:00:00 AM "#" _
& " AND criteria = between #" & forms!frmLog!Text295 & "#" AND forms!frmLog!Text297 & "#")
it cames up the fonts into red while im editing this code.
Im not familiar with the syntax of dlookup.
Please need your help.
Thanks.
criteria1 = combo1 (string data type)
criteria2 = text38 (value)
criteria3 = <> "12:00:00 AM" (date)
criteria4 = between [start] AND [end] (date)
Tablogs = Table Name
tccec_pc = fieldname from Tablogs
Here's my script:
Text474 = DLookup("tccec_pc", "TabLogs","criteria='" & forms!frmLog!combo17 _
& " AND criteria = '" & forms!frmLog!Text38 & "'" _
& " AND criteria <> "'" & 12:00:00 AM "#" _
& " AND criteria = between #" & forms!frmLog!Text295 & "#" AND forms!frmLog!Text297 & "#")
it cames up the fonts into red while im editing this code.
Im not familiar with the syntax of dlookup.
Please need your help.
Thanks.