Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    7

    Unanswered: 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 01:56.

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    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? ***

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    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
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •