Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default NULL into table

Do not include that column or value in your Insert. Let the DB engine handle
it.

NickHK

"Striker" wrote in message
...
I am trying to inset into a SQL database table some information based on
cell entries. One of my fields takes a NULL value, when I look at the SQL
table it actually says NULL in there. So my question is how do I get the
Null into the table from my insert query?

Should the variable I'm copying the data from the cell to, be a Integer,

or
String etc.

MySQL = "insert into carer
(carer_lookup_type,carer_code,carer_prompt,full_na me,carer_prompt_sp)

values
(" & sLookup & ", " & _
iCarCode & ", '" & iPrompt & "', '" & sFname & "', '" & iSP & "')"

Thanks in advance




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
How to test for imported Access table null cell? G Lykos Excel Worksheet Functions 3 October 6th 08 02:54 PM
Null, "null", vbNull, vbNullString, vbEmpty [email protected] Excel Programming 2 July 25th 06 01:28 PM
Pivot table format changes if value of source data is null Frustrated with formatting! Excel Discussion (Misc queries) 0 October 24th 05 01:16 AM
need Lookup table to return null or zero simbob Excel Worksheet Functions 5 September 24th 05 01:55 PM


All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"