Hello,
I have been trying to resolve this problem for a while and can't seem to find a solution anywhere.
I have a database with the following relationship setup: A) Contract table with field AssetID (AutoNumber) linked to table LineItems (One to many relationship). B) LineItems table with field LineItemID (AutoNumber) linked to two tables 1) LineItemsExpens eDetails (One to many relationship) and 2) LineItemsPaymen tDetails (One to many relationship). The logic is that one contract can have multiple line items and each line item can have multiple expense and multiple payments. Not sure if the relationship optimally setup.
Created three datasheet subforms: 1) sfrmLineItems bound to table LineItems 2) sfrmLineItems bound to table LineItemsExpens eDetails and 3) sfrmPayments bound to table LineItemsPaymen tDetails
Created a form to pull it all together as follows: An unbound text box to select the contract to view. Inserted sfrmLineItems to enter the multiple line items related to the selected contract. Next I inserted a Tab Control and named the first page "Expenses" and inserted the subform "LineItemsExpen seDetails". The second page I named "Payments" and inserted the subform "LineItemsPayme ntDetails".
For a while could not get the expense and payment subform to link to the first LineItem subform's line item number. I read about a solution where you would insert an unbound text box in the Master subform and reference the field that is to be used as the link. In the subform that needs to be updated, reference the Name assigned to this unbound text box. This seemed to work ok for the Expense subform but when applied to the Payment subform and I previewed the form, it flickered uncontrollably. Can't seem to find a solution to this flickering or an alternate database setup solution. Your help is deeply appreciated.
Thanks in advance,
CJ
I have been trying to resolve this problem for a while and can't seem to find a solution anywhere.
I have a database with the following relationship setup: A) Contract table with field AssetID (AutoNumber) linked to table LineItems (One to many relationship). B) LineItems table with field LineItemID (AutoNumber) linked to two tables 1) LineItemsExpens eDetails (One to many relationship) and 2) LineItemsPaymen tDetails (One to many relationship). The logic is that one contract can have multiple line items and each line item can have multiple expense and multiple payments. Not sure if the relationship optimally setup.
Created three datasheet subforms: 1) sfrmLineItems bound to table LineItems 2) sfrmLineItems bound to table LineItemsExpens eDetails and 3) sfrmPayments bound to table LineItemsPaymen tDetails
Created a form to pull it all together as follows: An unbound text box to select the contract to view. Inserted sfrmLineItems to enter the multiple line items related to the selected contract. Next I inserted a Tab Control and named the first page "Expenses" and inserted the subform "LineItemsExpen seDetails". The second page I named "Payments" and inserted the subform "LineItemsPayme ntDetails".
For a while could not get the expense and payment subform to link to the first LineItem subform's line item number. I read about a solution where you would insert an unbound text box in the Master subform and reference the field that is to be used as the link. In the subform that needs to be updated, reference the Name assigned to this unbound text box. This seemed to work ok for the Expense subform but when applied to the Payment subform and I previewed the form, it flickered uncontrollably. Can't seem to find a solution to this flickering or an alternate database setup solution. Your help is deeply appreciated.
Thanks in advance,
CJ
Comment