Help with a Validation

S

Stibbz

I need a validation which will not allow booking's < 1 week and not more than
2 months in advance of the date booked.

If any body could offer ny advice I would be very grateful
 
S

Stibbz

I am sure this validation works but it isn't working with my pop up calendar.
I was wondering if you could check my VB for me??? It keeps on highlighting
the starred line.

Option Compare Database

Private Sub Calendar2_Click()
Event_Date.Value = Calendar2.Value****
Event_Date.SetFocus
Calendar2.Visible = False
End Sub


Private Sub Event_Date_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Calendar2.Visible = True
Calendar2.SetFocus
If Not IsNull(Event_Date) Then
Calendar2.Value = Event_Date.Value
Else
Calendar2.Value = Date
End If
End Sub
 

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