473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dtPicker checkbox

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?

Apr 4 '07 #1
5 7741
On Apr 4, 11:00 am, "Robi" <RBia...@aol.co mwrote:
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?
set DefaultValue = False

Apr 4 '07 #2
On Apr 4, 12:20 pm, "Tom Clavel" <tomcla...@oura ynet.comwrote:
On Apr 4, 11:00 am, "Robi" <RBia...@aol.co mwrote:
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?

set DefaultValue = False
Where is the DefaultValue property? My object is called dpWetDate and
I tried:
dpWetDate.Defau ltValue = False
in my Form_Load() but got an error message
Object doesn't support this property or method

Did I put it in the wrong place?

Apr 4 '07 #3
Robi wrote:
On Apr 4, 12:20 pm, "Tom Clavel" <tomcla...@oura ynet.comwrote:
>>On Apr 4, 11:00 am, "Robi" <RBia...@aol.co mwrote:

>>>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?

set DefaultValue = False


Where is the DefaultValue property? My object is called dpWetDate and
I tried:
dpWetDate.Defau ltValue = False
in my Form_Load() but got an error message
Object doesn't support this property or method

Did I put it in the wrong place?
Dbl-click on the control and that pulls up the property sheet. Click on
the data tab and you'll see DefaultValue in one of the rows.

You might want to write
DefaultValue
in some code, highlight it, and press F1.

Not sure why you are getting the error. Is it a bound field (dpWetDate)
but the control name has a name like Text0? (see property sheet then
the Other tab).


Apr 4 '07 #4
On Apr 4, 12:20 pm, "Tom Clavel" <tomcla...@oura ynet.comwrote:
On Apr 4, 11:00 am, "Robi" <RBia...@aol.co mwrote:
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?

set DefaultValue = False
Tom - You were on the right track, but I actually had to set .Value =
Null.

Thank you very, very much for pointing me in the right direction.
This has been bugging me way too long! =)

Apr 4 '07 #5
On Apr 4, 4:14 pm, "Robi" <RBia...@aol.co mwrote:
On Apr 4, 12:20 pm, "Tom Clavel" <tomcla...@oura ynet.comwrote:
On Apr 4, 11:00 am, "Robi" <RBia...@aol.co mwrote:
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?
set DefaultValue = False

Tom - You were on the right track, but I actually had to set .Value =
Null.

Thank you very, very much for pointing me in the right direction.
This has been bugging me way too long! =)
Oh. I thought you said you wanted the check box unchecked. Sounds
like you
wanted the date picker made null.
Glad to help, if I did. -tc

Apr 4 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2991
by: Theo | last post by:
Hi Guys, A silly question really, but how do I get the value of a DTPicker. I just need to get the value in session variable and display it on a different page. ----------------------------- This message is posted by http://asp.forumszone.com
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
11
6165
by: Killer42 | last post by:
Hi all. Short version: DtPicker goes strange when .Enabled changed in VBA code, looking for solution or good workaround. Looooong version: Those of you who have been following various threads here will know that I have a fairly large Access 2003 database (actually split over multiple backend databases and a front-end), which users search by...
2
1853
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
1
3349
by: psuaudi | last post by:
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...
8
8324
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...
2
2677
by: blees10 | last post by:
Hey Guys, I have an issue with a dtpicker field in one of my forms. I developed this form using Access 2003 and everything works fine. Recently, I've been asked to deploy this database to secondary office. The version of Access loaded on each workstation in the seconday office is Acces 2003 as well. The Active X control for the dtpicker...
1
1762
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
3268
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
7432
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
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7786
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
6022
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
5359
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
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
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.