elvenmaiden
Programmer
Am trying to compare a date time picker value to a date field in access, but cannot come up with the right syntax. Would appreciate any suggestions
i.e. .Open "Select * from tblDate where EffectiveDate = # & dtpEffectiveDate.Value & #
This syntax does not retreive any records.
Also tried to set the dtpEffectiveDate.Value to a date variable and use that in the Select statement and tried assigning DATEVALUE(dtpEffectiveDate.Value) to the variable and used this in the select.
Thanks for any help
i.e. .Open "Select * from tblDate where EffectiveDate = # & dtpEffectiveDate.Value & #
This syntax does not retreive any records.
Also tried to set the dtpEffectiveDate.Value to a date variable and use that in the Select statement and tried assigning DATEVALUE(dtpEffectiveDate.Value) to the variable and used this in the select.
Thanks for any help