Invalid Column name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kayclink
    New Member
    • Oct 2009
    • 4

    Invalid Column name

    hi, i am trying to generate a report through a record in a combo box but i get this error "invalid column name "DFG55FS"
    Please note "DFG55FS" is a record name in my combobox. please help
    i am using vb.net 2005 and SQL 2000

    my code here..


    "select *from Booking2 where horsereg =" & Me.ComboBox1.Te xt
  • MikeTheBike
    Recognized Expert Contributor
    • Jun 2007
    • 640

    #2
    Hi

    Perhapse

    "select * from Booking2 where horsereg = '" & Me.ComboBox1.Te xt & "'"

    ??

    MTB

    Comment

    • kayclink
      New Member
      • Oct 2009
      • 4

      #3
      thank you so much. it helped so sort out the problem...

      Comment

      • Max Payne

        #4
        thanks a lot..!!!! i wanted it for a search form very badly.. u solved my problem.. thanks again!!!

        Comment

        Working...