| | |
search problem in vb
![]() |
•
•
Join Date: Mar 2007
Posts: 4
Reputation:
Solved Threads: 0
hi all!!
im using ADODC as the connection with MS access.
hw can get the selected data in the datagrid on the click of the command button?
i.e If user want the employee info from company then user enters the emp code and by pressing 'search' command button user gets the info in the datagrid. im nt able to bring the related data in the grid.
plz help its urgent....
nihar99
im using ADODC as the connection with MS access.
hw can get the selected data in the datagrid on the click of the command button?
i.e If user want the employee info from company then user enters the emp code and by pressing 'search' command button user gets the info in the datagrid. im nt able to bring the related data in the grid.
plz help its urgent....
nihar99
•
•
Join Date: Mar 2007
Posts: 3
Reputation:
Solved Threads: 0
Hello,
Try to use this code as a guide:
code in combo box or text under change
If rs.State = 1 Then: rs.Close
rs.Open " Select * From TableName Where RecordSource like '" & comboname/textname & "%'", db, adOpenKeyset, adLockPessimistic
Set DataGrid.DataSource = rs
:cheesy:
Hope you may find it well...
Try to use this code as a guide:
code in combo box or text under change
If rs.State = 1 Then: rs.Close
rs.Open " Select * From TableName Where RecordSource like '" & comboname/textname & "%'", db, adOpenKeyset, adLockPessimistic
Set DataGrid.DataSource = rs
:cheesy:
Hope you may find it well...
![]() |
Similar Threads
- Search problem (Java)
- binary search problem (C++)
- mp3 sync problem.. (Cellphones, PDAs and Handheld Devices)
- Internet Explorer search problem (Windows NT / 2000 / XP)
- search and results problem (PHP)
- Search not working right... (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Problem with Dir() in VB6.0
- Next Thread: How to set database location via code in Crystal Report XI....?
| 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





