Results 1 to 2 of 2

Thread: Sql Statee=ment

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Eastern Kentucky
    Posts
    14

    Question

    What is wrong with with this statement?
    I am trying to return the valve that is listed in a combobox.

    dim sSql as string
    sSql = "Select * From CustomerTable Where Name = " & Combobox & "
    Thanks for your help

  2. #2
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Worldwide in the Sun
    Posts
    566

    I see unpaired quotes.

    Try this:

    sSql = "Select * From CustomerTable Where Name = ' " & Combobox & " ' "

    greetings
    Ray

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