Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with insert 1

Status
Not open for further replies.

Watermelon

Programmer
Apr 16, 2001
68
US
Hi,

I'm trying to insert the value from a control on my form named Part into a QuoteLine table. For some reason when the first digit of the Part field is 0, the 0 will not be inserted into the table. The rest of the numbers will be inserted but for some reason the 0 is not going in. So, if I have number 036708 everything but the 0 is inserted. The datatype for this field in the table is text.

Does anyone know why this is happening?
This is my sql statement

sql = "INSERT INTO QuoteLine(Quote, Part)VALUES (1," & Part & ")"
Thanks,
TM
 
Melon:

My first guess is that the source is formatted as text and the target is formatted as number.

Number fields will not hold preceeding zeros unless specifically formatted for such in table design.


Larry De Laruelle
larry1de@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top