Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date Picker current date

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
c00zzan0stra
New Member


Joined: 18 Oct 2006
Posts: 12
Location: New York, NY USA

PostPosted: Fri Jan 04, 2008 4:01 pm    Post subject: Date Picker current date Reply with quote

How do you set the date in a date picker control.

When I do:

Me.dpFrom.Value = Now()

I get an error about the control is read only.
Back to top
View user's profile Send private message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Jan 04, 2008 4:26 pm    Post subject: Reply with quote

You have to put it in the OnLoad event:

Code:
Private Sub Form_Load()
  Me.dpFrom.Value = Date
  Me.dpThru.Value = Date
End Sub


If you put it on the OnOpen you will get that error Exclamation

Keep in touch.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group