update sql quotes hell

Results 1 to 3 of 3

Thread: update sql quotes hell

  1. #1
    Aku Guest

    Default update sql quotes hell

    Cant get update query to work - error on last sql line. code is text variable passed from previous page.<BR><BR>sqlstmt = "UPDATE modules"<BR> sqlstmt = sqlstmt & "code=&#039" & code & "&#039,"<BR> sqlstmt = sqlstmt & "name=&#039" & name & "&#039,"<BR> sqlstmt = sqlstmt & "leader=&#039" & leader & "&#039"<BR> sqlstmt = sqlstmt & " WHERE code=&#039" & code & "&#039"<BR> Set RS = conn.execute(SQLstmt)

  2. #2
    JBlaeske Guest

    Default RE: update sql quotes hell

    Looks like your UPDATE statement is missing a SET stmt before setting the field values. You don&#039t describe the error you&#039re getting.

  3. #3
    Aku Guest

    Default RE: update sql quotes hell

    Thanks,<BR><BR>it was the missing "SET"!!!<BR>I&#039ll be taking a break now!<BR>Aku

Posting Permissions

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