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

Home Posts Topics Members FAQ

dtpicker problem with dtptime

58 New Member
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 and not sure what i am doing wrong. i have the format set to 2 - dtptime. If someone can help me or has a better idea on how to enter in time it would be helpful. thank you in advance

Rude
Oct 13 '08 #1
6 3270
debasisdas
8,127 Recognized Expert Expert
i think you have set the value of dt picker to current time . Is that the case.
Oct 14 '08 #2
rudeman76
58 New Member
i set it at form load.

Expand|Select|Wrap|Line Numbers
  1.     txtTime.MinDate = "00:00"
  2.     txtTime.MaxDate = "23:59"
  3.     txtTime.Value = Format(Time, "Short Time")
  4.  
the min and max lines i added to see if that was my issue. It still didnt work.

Is this wrong, the way i did it?
Oct 15 '08 #3
debasisdas
8,127 Recognized Expert Expert
i dont think textboxes have mindate and maxdate properties .
Oct 15 '08 #4
rudeman76
58 New Member
sorry,
the txttime is my dtpicker. i didnt explain that
Oct 15 '08 #5
debasisdas
8,127 Recognized Expert Expert
the third line is creating the problem . instead of taking user entered value that is taking system time.
Oct 15 '08 #6
rudeman76
58 New Member
awesome, works perfect now. Thank you very much
Oct 15 '08 #7

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

Similar topics

3
2992
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
0
6897
by: Andreas Belitz | last post by:
Hello, in my project, i use a form with Microsoft's Dte Picker Control (MSComCtl2.DTPicker.2). This control is linked up to a date field of a table. When i open the form, the control always displays its default date value set in the properties and not the date of the appropriate column of my table. Using VBA and "msgbox"'ing the value of...
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
1
3353
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
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...
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
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...
4
5823
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...
0
7701
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
7615
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
7924
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. ...
1
7677
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...
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
5219
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
3653
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
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.