473,386 Members | 1,720 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,386 software developers and data experts.

Problem in DTPicker

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

Sree
Apr 24 '08 #1
4 1635
CyberSoftHari
487 Expert 256MB
You must explain your problem in detail.

Expand|Select|Wrap|Line Numbers
  1. "insert into empdetails values(#" & DTPicker1.value & "#)"
the date time is not a string (in MS Access)
Apr 24 '08 #2
You must explain your problem in detail.

Expand|Select|Wrap|Line Numbers
  1. "insert into empdetails values(#" & DTPicker1.value & "#)"
the date time is not a string (in MS Access)

Hi..

Thks a lot for ur quick reply..
I'm using sql and not ms access..
I'm getting error as overflow while running this form...
How to insert this date into the database using sql query?

Sree....
Apr 24 '08 #3
CyberSoftHari
487 Expert 256MB
Expand|Select|Wrap|Line Numbers
  1. "insert into empdetails values(#" & Format(DTPicker1.value,"yyyy/MM/dd") & "#)"
You have to pass the date fomat like "MM/dd/yyyy" or "yyyy/MM/dd". (Asum that will be date month overflow).
Apr 24 '08 #4
hi..

thks alot..

Sree.
Apr 28 '08 #5

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

Similar topics

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...
1
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...
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...
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: deviii | last post by:
hello vb experts i want some details which r stored in database . and i want to display them based on the value selected by the DTPicker control.how i can access it? i want to display that...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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,...
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...

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.