|
|||
|
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 |
![]() |
| 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 |