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!

Creating records in a table based on another table from a form

Status
Not open for further replies.

yezleb

IS-IT--Management
Oct 2, 2001
16
US
I am trying to create multiple one to many records from a button on a form. The form displays data from a "bowlers" table. I need to take he PK from the bowler and create records in another table to represent fees owed by week. I have a table with the dates in it that I need added to the form. What I am looking to create is records in my table like this:

bowlerid, weekno, teamno, house, bowlertype, owedamt.

I have two types of bowlers, regular and sub. The code needs to look at the table first and determine if the bowlerid is already in the table..if not in table then look at bowler type and determine regular or sub. If regular need to create records for weekno 1-17 and add in the rest of the infor from the bowlers table along with a specific "owedamt".

I can not figure out how to add the multiple values while doing the loop for the 17 weeks. I have over 200 bowers and need to create the charges in the table upfront at one time for each bowler.

Any help is greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top