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!

Export of the named range from Excel into Access table 1

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
Hi,

I am trying to export the named range from Excel 2003 workbook into Access table. I receive the following error:
"Syntax error in INSERT INTO statement"

The code:

strSQL = "INSERT INTO Final_Table_Updated * FROM [INPUT_RANGE] IN " & "'" & ThisWorkbook.FullName & "'"

objRS.Open strSQL, mobjConnection

The connection is fine.

Thank you!
 



Hi,

Maybe Select * From...

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hi Skip!

Thank you. I endeed needed the "SELECT"
I rewrote the statement:
strSQL = "INSERT INTO Final_Table_Updated SELECT * FROM [INPUT_RANGE] IN " & "'" & ThisWorkbook.FullName & "' 'Excel 2003;'"


And now receive this error:

Could not find installable ISAM.

How to fight this one?

Thank you

vladk

 
Solved it by replacing 2003 with 8.0

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top