Results 1 to 6 of 6

Thread: SQL Sentence in VB-GOING MAD!!!!

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Blacknight's Avatar
    Join Date
    Nov 2002
    Posts
    381

    Resolved SQL Sentence in VB-GOING MAD!!!!

    I use the following code and get "Syntax error in update statement". I have tried modifying but to no avail, HELP!!!!
    VB Code:
    1. If SetI(Index).Value = 1 Then
    2. acn.Execute ("update settings set " & settings.Fields(Index).Name & " =  " & True & "   ")
    3. Else
    4. acn.Execute ("update settings set " & settings.Fields(Index).Name & " =  " & False & "  ")
    5. End If
    1.SETI is just an index of checkboxes
    2.when it erroed, settings.fields(index).name was the name of the field I wanted to change
    3.settings is a table of one line containing 5 fields of boolean fields
    4.darn this!!!!
    Last edited by Blacknight; Oct 26th, 2004 at 06:59 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width