N
Norman Fritag
Hi there,
I am wonder why this dlookups return null, despite having a record in the
table with a matching date?
Am I missing something here???
Am i running in some limitations, that I am not aware of??
Any hint is much appreciated.
regards
Norman
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & format(txtDatevisited_text,"DD/MM/YYYY")& "#") =
null ??
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & cDate(txtDatevisited_text) & "#") = null
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & (txtDatevisited_text) ) = null
txtDatevisited_text reads in the debugger as "09/02/2004"
Me.Grade = 10
Me.DOHID = 1
DCount("Grade", strTable, "[DOHID] = " & Me.DOHID & " and Grade = " &
Me.Grade ) = 2
In the Record: Dohid = 1;Grade=10,datevisited="25/09/2003"
Dohid = 1;Grade=10,datevisited="09/02/2004"
I am wonder why this dlookups return null, despite having a record in the
table with a matching date?
Am I missing something here???
Am i running in some limitations, that I am not aware of??
Any hint is much appreciated.
regards
Norman
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & format(txtDatevisited_text,"DD/MM/YYYY")& "#") =
null ??
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & cDate(txtDatevisited_text) & "#") = null
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & (txtDatevisited_text) ) = null
txtDatevisited_text reads in the debugger as "09/02/2004"
Me.Grade = 10
Me.DOHID = 1
DCount("Grade", strTable, "[DOHID] = " & Me.DOHID & " and Grade = " &
Me.Grade ) = 2
In the Record: Dohid = 1;Grade=10,datevisited="25/09/2003"
Dohid = 1;Grade=10,datevisited="09/02/2004"