p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access (http://p2p.wrox.com/forumdisplay.php?f=18)
-   -   Calender Controls (http://p2p.wrox.com/showthread.php?t=5491)

sal October 29th, 2003 12:40 PM


It is difficult to get the calendar control to automatically update the textbox. The events do not fire as you would like them to fire.
It is easier to put the calendar control on a different form. You could also omit the textbox and use only a bound Calendar control. Bound to the date field you are using.

By binding it and giving it a default value, you automatically update the table.






Sal

KennethMungwira October 29th, 2003 04:20 PM

Sorry but I keep on getting an error on the [Date] part of the code!!?

'Forms![Form1]![Date].SetFocus
'Forms![Form1]![Date].Text = Me.Calendar0.Value

My textbox on the form is named Textbox1, so what is [Date]?

thank you

sal October 29th, 2003 04:46 PM

Sorry.

Instead of Date put the name of your textbox

Forms![Form1]![TextBox1].SetFocus

I need some coffee...




Sal


All times are GMT -4. The time now is 11:12 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.