G
Guest
Please help, I am trying to use a pop up form that will return some data 2
hours back in a table from text boxes within the form. However the DLookup
for the Date/Time field returns nulls most of the time (even when the data is
there)
'Returns the date/time 2 hours back of selection (works fine)
[G1RT-2] =Format(DateAdd("h",-2,[G1RT]),"yyyy mm dd hh:nn:ss")
'This is the lookup that fails- returns null (again not always), trying to
lookup the data from previous box
=DLookUp("[Pres1]","Gradient-Gauge1","[RealTime1] = #" &
Format([G1RT-2],"yyyy mm dd hh:nn:ss") & "#")
The date/time is in the table but only returns values on certain "times"
*Please note that the date/time field im looking up, is set as text (for
reasons i cannot any longer recall. but was necessary) Perhaps this is the
problem? should i be looking up another way based on this?
Please help
hours back in a table from text boxes within the form. However the DLookup
for the Date/Time field returns nulls most of the time (even when the data is
there)
'Returns the date/time 2 hours back of selection (works fine)
[G1RT-2] =Format(DateAdd("h",-2,[G1RT]),"yyyy mm dd hh:nn:ss")
'This is the lookup that fails- returns null (again not always), trying to
lookup the data from previous box
=DLookUp("[Pres1]","Gradient-Gauge1","[RealTime1] = #" &
Format([G1RT-2],"yyyy mm dd hh:nn:ss") & "#")
The date/time is in the table but only returns values on certain "times"
*Please note that the date/time field im looking up, is set as text (for
reasons i cannot any longer recall. but was necessary) Perhaps this is the
problem? should i be looking up another way based on this?
Please help