LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Write data to Access table with INSERT when table has auto number

I want to write Excel table data to an access table using INSERT but need to
skip the first field because it has datatype 'AutoNumber' which doesn't
accept bing written to. Below is where I'm at, trying to write nothing (i.e.
' ') to the first field in the Access Table where the AutoNumber data type is
defined.

sSQL = "INSERT INTO tblTest VALUES ('','CatD8N', '4.5', '4', 'RMM1',
'10/10/2005', 'Comemtn 1');"

cnAccess.Execute sSQL
 
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
Auto insert of a pivot table? Evil with a K[_2_] Excel Worksheet Functions 1 November 12th 09 08:49 PM
Pivot Table Refresh - Auto insert row Dominic LeVasseur Excel Discussion (Misc queries) 4 September 6th 06 01:03 AM
Insert Literal in Access Table using JETSQL Al Excel Programming 0 November 2nd 05 11:53 PM
Is it possible to insert an Access Table object into Excel? Jake Marx[_3_] Excel Programming 6 May 5th 04 04:34 PM
Is it possible to insert an Access Table object into Excel? GJones Excel Programming 0 May 4th 04 02:35 PM


All times are GMT +1. The time now is 11:31 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"