There are 3 textboxes->textbox1,textbox2,textbox3 and 1 button.
In textbox1 bname will be stored and in textbox2 aname is stored.
Bname and aname are columns of databasetable.
This are not unique.
There are same bnames and anames records.
What I am trying to do is:
when the user clicks on button then the code should match textbox1 and textbox2 with the databasetable and get the count of rows that match this data.
And print the count in the textbox3.
If there is no similar bname and aname in the table then the count should show 0.
I tried doing this but am pretty sure that its not right as its not working.
umm what is the solution?
Iamateur
0
Junior Poster in Training
Recommended Answers
Jump to PostAnd you will populate (show) all bnames into textbox1, and all anames into textbox2?
How they will be seperated?
This is not a good idea, better use a listBox, so items will be in a seperated rows.
All 4 Replies
Mitja Bonca
557
Nearly a Posting Maven
G_Waddell
131
Posting Whiz in Training
Begginnerdev
256
Junior Poster
adam_k
239
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.