donkey9972
Registered User.
- Local time
- Today, 00:38
- Joined
- May 18, 2008
- Messages
- 193
Hi, I have been reading up on what I can, but Dlookup confuses me, but then again what doesn't. I have a table called tbl_Coversheet and on that table I have a field called D_Date with the indexed set to Yes (No Duplicates), then on the form there is a field called txtdate for thie field on the table. I am trying to use this code
But I am not sure what goes where and I am sure I must be missing something for it. I have already read up on the MS website regarding this, but it is still confusing me. Can anyone help me and simplify this for me?
Code:
DLookup("D_Date", "tbl_Coversheet", "D_Date = '" & Me.txtDate & "'")
MsgBox "That date already exists"