Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic control creation based on database records

Status
Not open for further replies.

fareezf

Programmer
Oct 26, 2003
20
CA
Hi,

I have a table with 7 fields called 'CustomerOrder'. I am creating a form in which there is text box where the user will enter the name of the customer. Then that customer name should be searched in the 'CustomerOrder' table and if there are records belonging to that particular customer they should be shown on that form.

Suppose there are 3 records then 21 text boxes should be created dynamicaly on the form and should be populated with the records as follows.

text1 text2 text3 text4 text5 text6 text7
text1 text2 text3 text4 text5 text6 text7
text1 text2 text3 text4 text5 text6 text7

Could someone please show me how to do this?


Fareez...
 
Why don't you just display it in a grid?

I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
As I remember, an other alternative is to use the data repeater control.

I think you have to create your own user control to handle 1 Record. You then use the data repeater to replicate this control for each record in the recordset.

Much more than that, I can't remember, but MSDN will be able to help, now you have an idea to search for!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top