PC Review


Reply
Thread Tools Rate Thread

Insert statement error

 
 
=?Utf-8?B?Q0QgVG9t?=
Guest
Posts: n/a
 
      27th Dec 2005
I don't understand why but I'm sure having problems with an insert statement.
The problem I'm running into is when I try and insert a number field with
nothing in it. The field could sometime have a number and other times be
blank. If I leave the field as null I get and insert statement error. I
test the field for null and make it blank " " and I get the same error. Why
is it so difficult to leave a number field blank. Hopefully someone can give
me an answer. Thanks for any help.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?bXNjZXJ0aWZpZWQ=?=
Guest
Posts: n/a
 
      27th Dec 2005
Make sure you have allow nulls set to True in your table design.
Also, make sure the default value is null and not zero.
When describing errors, it helps to tell us the text of the error message.

Dorian

"CD Tom" wrote:

> I don't understand why but I'm sure having problems with an insert statement.
> The problem I'm running into is when I try and insert a number field with
> nothing in it. The field could sometime have a number and other times be
> blank. If I leave the field as null I get and insert statement error. I
> test the field for null and make it blank " " and I get the same error. Why
> is it so difficult to leave a number field blank. Hopefully someone can give
> me an answer. Thanks for any help.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i Insert multiple rows by using Insert statement in MS Acc =?Utf-8?B?S2F1c2hpayBTYWhh?= Microsoft Access Queries 3 15th Mar 2005 02:51 PM
What is the use of select statement in insert statement ? cmhasan Microsoft ADO .NET 1 10th Dec 2004 09:12 PM
how to insert a where clause in Insert Into... statement? Microsoft Access Queries 9 10th Dec 2004 12:27 PM
Very simple INSERT INTO with a DateTime parameter -> "Syntax Error in INSERT INTO statement" loquak Microsoft ADO .NET 3 30th Nov 2004 08:41 PM
SQL statement to insert a value generated by a SELECT statement? Rob Richardson Microsoft ADO .NET 2 21st Feb 2004 05:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:15 PM.