Subscribe: Subscribe to BigBlueBallRSSSubscribe to BigBlueBall by emailEmailSubscribe to BigBlueBallTwitter


Go Back   BigBlueBall Forums > Computer Support > Computer Support Discussion
Forgot Password? Register
Connect with Facebook

Reply
 
LinkBack Topic Tools
  #1 (permalink)  
Old 04-07-2004, 03:00 PM
Junior Member
 

Join Date: Apr 2004
Location: .
Posts: 1
drowla01 is on a distinguished road (10)
vb help with find code

I am using VB6 and I am tryin to do a find where the user selects a market form acombo box and then clicks ona find button and inputs a bts they are trying to find. I want the db to search for the BTS only where the market they have chosen in the combo box is true any ideas? here is the code I have so far, it works as I have it with the 'before & switch. text4.text is the where the combo box value is stored.

Private Sub Command1_Click()
bos = Text4.Text
prompt$ = " enter the BTS"
searchstr$ = InputBox(prompt$, "bts")
test = searchstr$
Data1.Recordset.FindFirst "bts= '" & test & "'" '& "switch='" & bos & "'"
If Data1.Recordset.NoMatch Then Data1.Recordset.FindFirst "bts like'*" & test & "*'"
End Sub

thanks in advance for your help
Reply With Quote
 

 
  #2 (permalink)  
Old 04-11-2004, 09:59 AM
Senior Member
 

Join Date: May 2001
Location: Australia.
Posts: 3,116
rustedtight is an unknown quantity at this point
clean up your english then we may understand your problem.


Web Fairy
Reply With Quote
  #3 (permalink)  
Old 04-11-2004, 10:25 AM
detn8r's Avatar
Moderator
 

Join Date: Jan 2002
Location: Uxbridge, Canada
Posts: 5,732
detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)detn8r has much to be proud of (1000)
Quote:
quote:Originally posted by drowla01

I am using VB6 and I am tryin to do a find where the user selects a market form acombo box and then clicks ona find button and inputs a bts they are trying to find. I want the db to search for the BTS only where the market they have chosen in the combo box is true any ideas? here is the code I have so far, it works as I have it with the 'before & switch. text4.text is the where the combo box value is stored.

Private Sub Command1_Click()
bos = Text4.Text
prompt$ = " enter the BTS"
searchstr$ = InputBox(prompt$, "bts")
test = searchstr$
Data1.Recordset.FindFirst "bts= '" & test & "'" '& "switch='" & bos & "'"
If Data1.Recordset.NoMatch Then Data1.Recordset.FindFirst "bts like'*" & test & "*'"
End Sub

thanks in advance for your help
Use this:
Data1.RecordSet = "select * from YourTable where TBS=" & Searchstr

Reply With Quote
Reply


Currently Active Users Viewing This Topic: 1 (0 members and 1 guests)
 
Topic Tools


Similar Topics
Topic Topic Starter Forum Replies Last Post
Find Email with screename? Sathallrin AIM Support 6 05-26-2005 07:15 PM
Windows 2000 and NT source leaked! EvilSeph Computer Support Discussion 15 04-23-2005 12:16 PM
How can I find out info about my contacts?? dsantamassino MSN / WLM Archive 9 06-27-2004 06:52 PM
VB & HTML terms detn8r The BigBlueBall Lounge 3 06-18-2004 05:16 PM
Error Code 10054?? poweranimals Trillian 1 01-08-2004 11:40 PM

 

All times are GMT -5. The time now is 04:34 PM.