Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to perform SQL INSERT from vbs script

Woops, I forgot a question in my last post.

http://www.activexperts.com/activmon...soffice/excel/
has a great little VBS script. I tried to enhance it to perform an SQL
insert statement. See my other recent post for the listing that includes my
attempt on lines 33-38. It did not work. No error message!

Can I expect SQL INSERT/DELETE/UDPATE statements to work with Excel?

Thanks,
Siegfried


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default How to perform SQL INSERT from vbs script

The following SQL statement works for me and is an insert

strSQL = "INSERT INTO tblEmployees [fldClockNo], [fldName] VALUES '" &
ClockNo & "', '" & name & "'"

Quite hard to make out the single quote characters but that works.

"Siegfried Heintze" wrote:

Woops, I forgot a question in my last post.

http://www.activexperts.com/activmon...soffice/excel/
has a great little VBS script. I tried to enhance it to perform an SQL
insert statement. See my other recent post for the listing that includes my
attempt on lines 33-38. It did not work. No error message!

Can I expect SQL INSERT/DELETE/UDPATE statements to work with Excel?

Thanks,
Siegfried



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
Script to insert Row Jeremy Excel Discussion (Misc queries) 2 April 19th 10 02:39 PM
Need VBA script to auto-insert value upon row insert Phil Excel Worksheet Functions 4 May 6th 08 02:41 PM
Insert a key function in VBA script Bowes813 Excel Programming 3 May 26th 05 11:27 PM
Script to insert the next Friday Mark Langendoerfer Excel Programming 1 April 12th 05 09:57 PM
Script to insert the next Friday T Kirtley Excel Programming 0 April 12th 05 08:27 PM


All times are GMT +1. The time now is 04:38 PM.

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

About Us

"It's about Microsoft Excel"