date picker

N

nomit

Hiya I'm stumped

I've included a date picker control in my task form I'm customising

I can not get anything to register on clicking this control and then
found the below code posted as an aswer to someone else, that also
doesn't doi anything

I'm a bit flumuxed - I also know that only click events will work on
control but do not understand why I can't get anything from this
control?

cheeers for any help



Dim MyDate

sub DTPicker1_Click()

MyDate = item.GetInspector.ModifiedFormPages("P.2").Controls("DTPicker1").Month
& "/"& item.GetInspector.ModifiedFormPages("P.2").Controls("DTPicker1").Day
& "/" & item.GetInspector.ModifiedFormPages("P.2").Controls("DTPicker1").Year

end sub

Sub CommandButton1_click()

MSGBOX MyDate

end Sub
 
N

nomit

cheeers

I have now got the click event working with the control
now unbounded. But the click event only works when I click
on the "text box" part of the control, and not the drop
down arrow. There is no change event that seems to fire.
How do I get code to register the fact a user has changed
a date / or accessed the calendar?

cheers for all help
 

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