Allen Browne Calendar

B

Bob Vance

My code for your calendar is getting an error "A syntax error"

Private Sub cmdcalendar_Click()
=CalendarFor([tbDayNo], "Select the sale date")

End Sub
 
A

Allen Browne

The idea was to set the On Click property (in the Properties sheet) to:
=CalendarFor([tbDayNo], "Select the sale date")

If you want to use code in the event procedure, try:
Call CalendarFor([tbDayNo], "Select the sale date")
 
S

sajdh

abcdefghijklmnopqrstuvwxyz
Allen Browne said:
The idea was to set the On Click property (in the Properties sheet) to:
=CalendarFor([tbDayNo], "Select the sale date")

If you want to use code in the event procedure, try:
Call CalendarFor([tbDayNo], "Select the sale date")

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Bob Vance said:
My code for your calendar is getting an error "A syntax error"

Private Sub cmdcalendar_Click()
=CalendarFor([tbDayNo], "Select the sale date")

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