| | |
check initial charecters of a text...
Thread Solved |
hi... i have a small doubt in hw to check the initial charecters in text... like if the first two letters of my text is OS or TP... so based on that i should be able to select which database to select...
and one more doubt is dat suppose i want to check the status of a request then the corresponding details of that id only should open.. so do i need a multiple select statement... or is it possible to have select statement for more than one field???
please reply!
thanking in advance!
and one more doubt is dat suppose i want to check the status of a request then the corresponding details of that id only should open.. so do i need a multiple select statement... or is it possible to have select statement for more than one field???
please reply!
thanking in advance!
hi. you can left command
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If Left(Text1.Text, 2) = "OS" Then rs.open"select * from table" Elseif Left(Text1.Text, 2) = "TP" Then rs1.open"select * from table1" else rs2.open"select * from table2" end if
hi the left command worked perfect.... can you please clarify my other doubt also... that is if we can select multiple fields from a dabase and show it at the VB front end???
thanx a lot for the help!!!
•
•
•
•
hi. you can left command
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If Left(Text1.Text, 2) = "OS" Then rs.open"select * from table" Elseif Left(Text1.Text, 2) = "TP" Then rs1.open"select * from table1" else rs2.open"select * from table2" end if
thanx a lot for the help!!!
hi. just select the field you're gonna use.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
rs.open"select emp_name, emp_address from tbl_emp" text1=rs.fields("emp_name")
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Restoring form View when msgbox appear
- Next Thread: Report Setup
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





