Results 1 to 5 of 5

Thread: SQL

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Question

    Hi
    Whats wrong with the following SQL statement i got a object require error out of it everytime i click on dbcombo

    Code:
    Private Sub DBCombo1_Click(Area As Integer)
      Data2.Recordset.FIND DBCombo.ListField & " = " & DBCombo.Text
    
    end sub
    Any suggestion or help will be greatly appreciated
    Thanks

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Change DBCombo to DBCombo1.

    PS - that's not a SQL statement
    SQL statements look like this: "SELECT * FROM MyTable WHERE MyStringField='Hello';"
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    ... and shouldn't the method be "FindFirst"?
    BTW, the argument given to a "FindXXXX" method is like a SQL "WHERE" clause without the word "WHERE".
    "It's cold gin time again ..."

    Check out my website here.

  4. #4
    Lively Member
    Join Date
    Sep 2000
    Posts
    116

    Post

    Maybe you have this code in another form from where
    Data2 is.


    Try this

    Data2Form.Data2.RecordSet.FindFirst...
    0101011001000010
    01101111011011100110110001101001011011100110010101110010

  5. #5

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Thanks for pointing out the error guys
    I will try to fix the code and see how it turns out


    Thanks

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