473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Access Form using Date Picker (MSComCtl2.DTPicker.2)

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 the
control, it shows the right value (the one from the table):

in the table (1st record) the date field (myDateField) is 30.01.2006
(german notation of 2006-01-30). The "Value" property of the control
on my form (myDatePickerControl) is 01.01.2006.

MsgBox myDatePickerControl.Value

on the OpenForm event gives me
30.01.2006

the control, however displays 01.01.2006 on the form.

Am i doing anything wrong? BTW: if this matters: the control is
sitting on a tabstrip control (don't know the english name... not the
Forms.TabStrip.1 control, but the one directly from the toolbar).

Thanks for any help in advance,

Andreas Belitz
Nov 13 '05 #1
0 6885

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

Similar topics

6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
6
by: toddw607 | last post by:
Hi Everyone, I am using Access 2003 to design a DB. I had a DTPicker data type to get the date from a user but I recently converted it to a text box. However now when I try to call the...
0
by: keithsimpson3973 | last post by:
Does anyone know if it is possible to display the value of a date picker control on a vb6 form that the user selected on an access report? I am using vb6 to display a report selection and it has a...
0
by: keithsimpson3973 | last post by:
Does anyone know if it is possible to display the value of a date picker control on a vb6 form that the user selected on an access report? I am using vb6 to display a report selection and it has a...
2
by: godhulirbalaka | last post by:
Hai, I set date and time picker dtp_FromDate.value=Format(Now,"dd/mm/yyyy") but still in run mode it is showing 10/30/2007. I want to see it 30/10/2007 at the run time in dtpicker. How can...
4
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...
2
by: beemomo | last post by:
hi everyone! i am using an active x control : date time picker in an access form that bound to date field in a table. Whenever it is displayed on my machine, the control can be displayed and...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
1
by: Bobby | last post by:
Hi, I'm using Office 2007. I have a text field called txtDate which is formatted to medium date. This gives me the date picker when the control has the focus. I have several other text controls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...

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.