469,898 Members | 1,547 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Searching multiple records

2
Searching multiple records
--------------------------------------------------------------------------------

Hi guys. I need ur help.
In VB.NET we usually use this code to search the database through windows application:
CODE::::::
private sub btnSearch_click(--)
dim empno as byte
empno=inputbox("Enter emp no")
dim r as datarow
r=ds.tables("emp").rows.find(a)
if r is nothing then
Msgbox("Emp not found")
else
t1.twxt=r.items(0)
t2.text=r.items(1)
end if
end sub

By this we can get one emp info. but If i wnt to search another emp's info by providing empno second time, then the first fetched record will be cleared and will get new searched record in the textboxes.

Qns is: I wnt the multiple records should display, so plz tell me how to do that with detail descriptions.
And also if possible plz tell me the same concept in C#.NET with detailed coding.

Waiting for the reply. Thanks in Advance.
Mash.
Mar 26 '07 #1
0 1015

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Robert Oschler | last post: by
33 posts views Thread by Geoff Jones | last post: by
1 post views Thread by BlackJackal | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.