473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DTPicker read only error

27 New Member
I have a form that I was creating and I wanted to use the microsoft date and time picker. in the On_Load event for the form, I want to set the date and time picker value to Now()

Private On_Load()
dtpicker.value = now()
end sub

However, in the form that I was creating, it says that the dtpicker is read-only and cannot be changed.

If I create a blank form and insert a date and time picker, and use the on_load even above, it works fine. I've checked and cannot see what settings I might have different between the two forms...

It looks like others have had this error before, but that there was no clear fix. Am I out of luck?

Thanks
Feb 26 '07 #1
1 3353
nico5038
3,080 Recognized Expert Specialist
Did you try the OnOpen event instead ?

Nic;o)
Feb 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1550
by: someone | last post by:
Hi, We are encountering a problem with the DTPicker. This is the situation: We have a DTPicker-control on a VB6 Active-X. The Active-X is used on a .NET winform. the problem: The .Net winform is: 1. instantiated
0
3317
by: Tim Jackson | last post by:
Hi all, I am trying to set the value of the DTPicker control in ms Access 2002 to the current date by using the following code: - dtePicker.Value = Now() However when I try running the cod I get an error msg telling me that this value is read only. Newsgroup postings suggest this is the correct way to achive the
0
2341
by: Nectar Plaitis | last post by:
Hello I'm using the DTPicker control in my aspx page, (eg. <OBJECT id="dStart" style="Z-INDEX: 139; ...." codeBase="MSCOMCT2.CAB" classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" VIEWASTEXT Everything works great except the control is not using the Windows XP Theme version. I've read about creating a manifest and placing it in the...
2
1854
by: siyoyok007 | last post by:
Hello, I'm developing simple system, that needs the use of DTPicker. For my system, i have placed two dtpicker, which means DTPicker1 and DTPicker2. The DTPicker1 will be used as starting date and DTPicker2 as the end date. How can i calculate the duration between these two DTPicker?... help me please.. Thnx
8
8325
by: Sid666 | last post by:
Hi, everyone I'm building an Access DB system using VBA. I have a ActiveX DTPicker so the user can select a date. This date is put in another textbox that is bound to a table. I do this because if I make the DTPicker bound to the table then the date keeps changing to the current date (or the date that was last selected) when I scroll through...
5
7744
by: Robi | last post by:
I have a form which has a dtPicker control with a checkbox. The user checks or unchecks the box to indicate whether or not the date should be utilized. My problem is that the user would prefer to have the box unchecked by default. I cannot seem to find any properties that would allow me to do so. Does anybody know how to accomplish this?
2
1838
by: deviii | last post by:
hello vb experts i want some details which r stored in database . and i want to display them based on the value selected by the DTPicker control.how i can access it? i want to display that details based on date selected in DTPicker. This is my problem i received type missmatch error. can any one help me please?
1
1764
by: venkatanarasimhaa | last post by:
Hi, I am developing a simple application in VB. I have one DTPicker on my form. If the value of DTPicker is not mindate of DTPicker, It should not be allow us to enter any value earlier than the exitsing value of DTPicker. Ex: My DTPicker value is : 1/15/2008 It should not allow any date which is earlier than 1/15/2008 (like...
6
3271
by: rudeman76 | last post by:
Hi, I have a form that is a daily log. I use dtpicker for the user to enter in the time. At form load, I set the time as the current time. The problem i am having is when the user changes the time and goes to the next step, it does not take the new time, it uses the current time. For example, if it is 12:30pm and the user enters in 12:15pm,...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.