Results 1 to 4 of 4

Thread: Query Strings - RESOLVED

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Georgia
    Posts
    32

    Resolved Query Strings - RESOLVED

    I am coming from a vb6 background so I am new to .net. I am trying to add the value of a combobox in my sql and I use to go

    select * from tbl where id = '" & combobox.text & "'"

    I tried doing this and it states:

    Error 4 Operator '&' is not defined for types 'String' and 'System.Windows.Forms.ComboBox'. C:\Documents and Settings\sodam\My Documents\Visual Studio 2005\Projects\SC_Utility\SC_Utility\frmMain.vb 87 43 SC_Utility

    Thanks for your help
    Shannon
    Last edited by odamsr; Dec 2nd, 2005 at 02:58 PM. Reason: Resolved

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