Paul.....
Thanks for the help! I'm still going to do the reading. :)
What you sent me works great and accomplished exactly what I want. I'm going to ask a couple of explaination questions later but for now I've got one problem.
I had the following code in the closeup event of the control:
mdt=thisform.olecontrol1.object.value
m.date = ctot(dtoc(mdt)+' '+time())
thisform.olecontrol1.visible = .f.
thisform.text1.setfocus
The idea was this... when the user made a date choice that the calender and drop down would diasppear and the choice would be inserted for them into the date field.
It was working fine and now (with the new code addition) is not executing. When I click on a date the calendar closes but it goes back to the control drop down.
What about this new code would cause the closeup event not to fire? I just do not know enough about api work to know where to begin. I've tried putting the code in the click event and it does not work there.... got any ideas?
Tom Gahagan
Alliance
Computer Solutions
"Music, like sex, is much too important to be left to professionals."
Robert Shaw