DLLOKUP dtpicker

shamas21

Registered User.
Local time
Today, 19:40
Joined
May 27, 2008
Messages
162
Hi

I cant get the Dlookup to work.

=DLookUp("notes","tblcalendar","Date=" & [dtpicker1])

if i change to the following then it works

=DLookUp("notes","tblcalendar","Date= #01/01/2008#")

How can i get it to lookup the dtpicker1 to work?

Thanks
 
Code:
=DLookUp("notes","tblcalendar","[Date]=[color=red]#[/color]" & [dtpicker1] & [color=red]"#"[/color])
 
Now, one more thing - You should NOT be using DATE for a field name. That is an Access Reserved Word and you do not want to name fields or objects those. I would change it ASAP as it can only cause you pain if you don't.
 

Users who are viewing this thread

Back
Top Bottom