473,804 Members | 3,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with DTPicker

20 New Member
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 1/14/2008).

Is there any suggestion on this? Please help me out on this.

Thanks in advance.

Regards,
Venkat.
Jan 18 '08 #1
1 1787
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

Set the "MinDate" of datepicker to whataever date you want,
it will not allow you to pick previous date..

Regards
Veena
Jan 18 '08 #2

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

Similar topics

3
3002
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
1
2024
by: Patrick.Everard | last post by:
I am designing a booking system for a college project. I have a dtpicker on the booking form but the date does not save. e.g. if i cange the date to 31/4/2006 when i switch to the next record that date changes aswell. Is there anyway to stop this from happening?
5
1295
by: dwadish | last post by:
Hai guys ! i am razak want to debugging my bug. i want to search a recordset field continueously when matching it to a value of a dtpicker.value. i am also used this code for it but it is failed . my code is do while no rs.eof()
2
1863
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
3366
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 I create a blank form and insert a date and time picker, and use the on_load even above, it works...
8
8337
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 the records on the form. I just made the DTPicker so small that only the dropdown arrow is visible...
4
5839
by: virusingh | last post by:
q.1How to use DTpicker in vb6 add , difference, between two date e.g one employee date of birth is 15/1/1987. and how we will use dtpicker to calculate its retirement date after completion a service of 57 years. q.2 How can i calculate the current date in today i.e. 20/02/2008 from his date of birth i.e, 15/01/1987. How many year he complete i.e, age as on 20/02/2008. q.3 can i generate automatic No. i.e, serial number in a given...
4
1653
by: sreegans | last post by:
Hi.. I'd a problem while using the DTPicker in VB form. While executing the sql statement, cn.execute "insert into empdetails values(' " & DTPicker1.value & " ')" Got the error as overflow.... pl help me..how to avoid this...?
6
3287
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, it uses 12:30 as the time. i am using dtpicker.value to get the info. I am new to using dtpicker...
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10569
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
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.