Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Set date to Date and time picker

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roy Goldhammer - 15 Mar 2007 09:24 GMT
Hello there

I have access application with Date and time picker object inside.

I can bound it to table. But i can't set value to it.

I tried this
Sub Form_Load()
   me.txtArrivalDate = "07/01/2005" 'July the first
End Sub

I got this error: Date and time picker error: Property is read-only

How can i set value to date and time picker?
missinglinq - 15 Mar 2007 15:03 GMT
I'm confused, Roy! You appear to be trying to set a default date to your
Date/Time picker, but you're trying to assign a date to a textbox control. If,
in fact, you're trying to set a value to the date picker, try this, where

YourDatePickerName

is the actual name of your date picker.
Private Sub Form_Load()
   Me.YourDatePickerName ="07/01/2005"
End Sub

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.