|
Thread: SQL
-
Oct 7th, 2000, 11:23 AM
#1
Thread Starter
Addicted Member
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
-
Oct 7th, 2000, 11:28 AM
#2
Monday Morning Lunatic
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
-
Oct 7th, 2000, 11:31 AM
#3
... 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.
-
Oct 7th, 2000, 11:35 AM
#4
Lively Member
Maybe you have this code in another form from where
Data2 is.
Try this
Data2Form.Data2.RecordSet.FindFirst...
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Oct 7th, 2000, 11:43 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|