473,396 Members | 2,108 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,396 software developers and data experts.

DTpicker to text

I want to be able to choose a date with DTpicker, save it with a dim array, then be able to call it back again into the database.

I can get it to save, but when it calls it back i get for the 01/01/2007 i get 31/12/1899 returned.

the right date is saved in the database file, i dont have much hair left to pull, so please help

Just a small simple code would be nice,

MaD
Jul 16 '07 #1
1 1257
Killer42
8,435 Expert 8TB
I want to be able to choose a date with DTpicker, save it with a dim array, then be able to call it back again into the database.

I can get it to save, but when it calls it back i get for the 01/01/2007 i get 31/12/1899 returned.

the right date is saved in the database file, i dont have much hair left to pull, so please help

Just a small simple code would be nice,
When you insert a date into an SQL statement, you need to:
  • Put # delimiters around it (not quotes), and
  • Make sure it's in either U.S. format (month/day/year) or a non-ambiguous format such as "01 Jul 2007" so there's no possibility of misinterpretation.
I recommend you go to the Access forum, and have a look at the index of tips and tricks, near the top of the list. It has an entry which deals with all this, including the differences between Access and SQL Server (I'm only dealing with Access in this post).
Jul 17 '07 #2

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

Similar topics

3
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. -----------------------------...
0
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...
2
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...
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...
1
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...
8
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...
2
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...
1
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...
6
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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.