If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > update & insert operation, asp, vbscript, Ms Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-07, 11:06
Dilruba Dilruba is offline
Registered User
 
Join Date: Nov 2007
Posts: 7
Ms Access

I have used the following codes:


Code:
connectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\progam files\mail.mdb"



ConnectionDb = connectionString

‘ execute the update

Set MM_editCmd = Server.CreateObject("ADODB.Command")

MM_editCmd.ActiveConnection = MM_editConnection

MM_editCmd.CommandText = sql

MM_editCmd.Execute

MM_editCmd.ActiveConnection.Close

[/code]

Last edited by Dilruba; 11-15-07 at 00:56.
Reply With Quote
  #2 (permalink)  
Old 11-12-07, 12:31
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Care to be a little more specific than "not working"?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 11-12-07, 12:39
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
At a guess, you're leaving an extra comma on the end of your SQL statement...
E.g.
Code:
UPDATE mytable
SET   field1 = '1', field2 = '2',
WHERE 1 = 1
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On