PDA

View Full Version : Solved: Bound Textbox control to calendar control



kbsudhir
07-02-2009, 02:05 PM
Hi All,

I have a textbox control named "txtbox1" & a calender control named "cal1".

I want:


Bound the txtbox1 to cal1 so that whatever date is selected is displayed on the textbox.
I want that the calender is displayed as a small buton so that its displayed whenever I want by clicking onto it.Please guide.

Regards
Sudhir

SoftwareMatt
07-03-2009, 01:55 AM
Hi,
On the AfterUpdate of cal1 try this:


If Not IsNull (Me!cal1) then
me!txtbox1 = me!cal1
me!button.caption = me!cal1
End If


Regards
JD

kbsudhir
07-03-2009, 07:16 AM
Thanks JD. it was helpful.

CreganTur
07-06-2009, 12:20 PM
Here is an example database I created for someone else a while ago that demonstrates how the ActiveX calendar control can interact with objects

HTH:thumb

kbsudhir
07-06-2009, 12:32 PM
Thanks Randy.