How do I enter today's date in box double click

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

I want to double click a box on a form so that it enters
today's date. I also want it to display a message "Are
you sure", and "Cancel". How do I do this?

Thanks Mark Allsop
 
I want to double click a box on a form so that it enters
today's date. I also want it to display a message "Are
you sure", and "Cancel". How do I do this?

Thanks Mark Allsop

Code the Date control's Double-click event:

If MsgBox("Are you sure?", vbOKCancel) = vbOK Then
Me![ADate] = Date
Else
Cancel = True
End If
 

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

Back
Top