Help with Coding

R

Raj

I need some help with the following code:
If Len(Me.cbxresearchcompdate.Value & "") > 0 Then
MsgBox "You must enter Research Completed" & _
" before you can enter Hand-off Date.",
vbExclamation, _
"Entry Not Allowed!"
Cancel = True
Me.cbxhandoffdate.Undo
End If

I have used this code with 3 other text box and it work
great but when I try to add it to my date text boxes I
get and "Variable Not Defined "Error and it highlights
the "Cancel = True". I have very little experience with
coding so please be kind. 

Any help would be appreciated.
Thank you
Raj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top