A
Andrej
Hello!
I am interested in using a Date datatype in an SQL call from VBA??
for example like this:
DoCmd.ApplyFilter , "date_of_production = #" & _
FormatDateTime(cbo_date.Value, 2) & "#"
or this:
DoCmd.ApplyFilter , "date_of_production = #" & cbo_date.Value & "#"
where cbo_date.value represents a valid date.
I'm wondering because I think this should work, but it doesn't!
I get no selected records out of it, whether I get a correct result
when I put this in a query criteria:
[forms]![frm_test]![cbo_date].[Value]
which is basically the same thing! Or is it?? I just don't know why I get
different results each time ... ????
Does anyone know?? phleeese ...
Thank you,
Andrej
I am interested in using a Date datatype in an SQL call from VBA??
for example like this:
DoCmd.ApplyFilter , "date_of_production = #" & _
FormatDateTime(cbo_date.Value, 2) & "#"
or this:
DoCmd.ApplyFilter , "date_of_production = #" & cbo_date.Value & "#"
where cbo_date.value represents a valid date.
I'm wondering because I think this should work, but it doesn't!
I get no selected records out of it, whether I get a correct result
when I put this in a query criteria:
[forms]![frm_test]![cbo_date].[Value]
which is basically the same thing! Or is it?? I just don't know why I get
different results each time ... ????
Does anyone know?? phleeese ...
Thank you,
Andrej