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(txtDatev isited_text,"DD/MM/YYYY")& "#") =
null ??
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & cDate(txtDatevi sited_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,date visited="25/09/2003"
Dohid = 1;Grade=10,date visited="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(txtDatev isited_text,"DD/MM/YYYY")& "#") =
null ??
DLookup("[Datevisited]", strTable, "[DOHID] = " & Me.DOHID _
& " and Grade = " & Me.Grade
& " and [Datevisited] =#" & cDate(txtDatevi sited_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,date visited="25/09/2003"
Dohid = 1;Grade=10,date visited="09/02/2004"
Comment