Perhaps this is a design flaw, please let me know.
I'm using Access 2000. I have a form with a tab control and 5
subforms within those tabs. The forms match with the tables: Client
main, Intake, Financial, Fees, Payments, Bills, Bill Line Items. The
design works thusly - Client Main relates to Intake. Intake relates to
financial. Financial relates Fees, Payments and Bills. Bills relates
to Bill Line Items.
On the form, I use the standard child and master links for Client Main
- which is the table the form is set for - and Intake. To link
financial to intake, I use the intake ID on the financial table as the
child and then I use the intake ID field on the intake subform as the
master. This is the methodology I use for all the subsequent subforms
- I relate them to each other. The syntax I use for the master link
is: [subfrmIntake-Discharge].form![IntakeID] (this is for the intake
to financial connection).
The Bills and Bill Line Items both appear on the same tab page, so I
use the onCurrent event for bills to requery the bill line items form.
That works just fine.
This all works just fine as long as there is no more than one intake
record. When there is more than one, I run into all kinds of
problems. First, I can't use the onCurrent to update the financial
form IF I then also use the onCurrent in the Financial form to update
fees, payments and bills - there is recursion and I have to end the
program. I've tried using onCurrent from Intake and just requery all
the subsequent forms, but that causes recursion as well.
I looked this up and found there was a bug that Microsoft is aware of
regarding this recursion issue when using onCurrent. So...I tried to
use the onChange event on the tab control so the forms would requery
when I clicked on the specified tab. This works for the Financial
form, but the bills and fees and payments don't seem to work. When I
set up a double-click button just to try to manually requery these
final subforms, I've found that it works, but it sends the Intake form
back to the first record. Yikes!
Here's what I'm thinking - there's something I'm missing in how I've
set up the fees, bills and payments forms that is different from how I
set up the financial form that creates a link in the wrong direction
to the intake? I've double-checked the master and child links and
they are correct. - OR this whole concept is just not doable and I
need to come up with a new way to show all this information for a
client.
I know this is wordy, but I wanted to be as clear as possible. Thanks
for any help you folks can pass my way.
Diana