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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop on each click of a button

Status
Not open for further replies.

jianhua

Programmer
Jun 22, 2001
55
US
Here is what I want to do – something like the features of cfgrid, but I want to do it in regular form to edit the dependents info of a particular employee. I run a query to get the existing dependents info of a particular employee and display them in a table.
Dep1 name1 birthdate1 gender1 …
Dep2 name2 birthdate2 gender2 …
Dep3 name3 birthdate3 gender3 …

Then I create 2 buttons “Add” and “Update” at the bottom of the form. I hope whenever the “Add” button is clicked, one empty dependent info row is displayed, another hit to get another empty row…, so users can add more than one new dependents and update the existing dependents.

Any ideas or sample code are appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top