Date/Time Picker in Form

  • Thread starter Thread starter D. McDonough
  • Start date Start date
D

D. McDonough

Seen many post re: probs w/ MS date and time picker, but
couldn't find this one:

Have date/time picker. Want TextBox to show the day of the
week name for the date in the picker. I've used the
following code:

dayName = WeekdayName(Weekday(DTPicker.Value))
Text1.Value = dayName

Works when the form data is not linked to a table. When I
set my table up so the value in the D/T Picker control is
a value from a table, it doesn't work!

How can I get it to work???

Thanks!
 
Depends where you are putting your code.
Which event are you using to trigger the code.
Try the dtp.update event this should trigger each time the record changes.
 

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