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!

Two data sources for form then update a third table

Status
Not open for further replies.

Fozzy9767

Technical User
Jun 12, 2006
58
US
I have two tables: "sortcodes" with fields "agentname" and "sortcode"(Unique Id), and "tblitemlist" with fields "itemID"(Unique Id), "itemcode"(Short Description), "description"(Long Description) and "Income/Expense"(Binary). I need a form that will have a drop down to choose the "agentname" from "sortcodes" and display "description", The Word Income or Expense (based on the binary field "income/expense", have a checkbox for whether the item is to be applied or not and a textbox or dropdown to specify a number from 0 to 1 (most entries will be .5 or .75 or 1, this is for a percentage calculation).

"tblitemlist" has 94 entries at the moment and will continue to grow, so I want to have the form display a line item for each record in the table without having to hand code every one on the form.

Once I have this done I will update a third table with a record that contains "sortcode", "ItemID", and "split"(the numeric entry) for every row where the "applied" checkbox is checked.

Can someone point me in the right direction for populating the form without hand coding everything? Should I out the list of items in a subform? I'm sure I can handle the append after the form is filled out, but I'm lost trying figure out how to make it create the subform with the extra controls, Thanks in advance,

Ken
 
Well, by using the "continuous forms" setting I was able to get my form to display a line per item. But I have another problem, all my controls have the same name. I think I'm heading down the wrong road. Anybody have a suggestion?

Ken
 
Be aware that in the detail section of a continuous form an UNBOUND control has a single value for ALL records.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
So am I just stuck building this 57000 row table by hand? Maybe I need to build my third table and find a way to do the data entry off that instead. <Sigh>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top