Basically I have a data acces page with a main form.
This main form then contains a sub form within a group section. I have the subform autoset to expand so it looks just the same as the rest of the form after some design changes.
The main form basically looks as follows:
Expand|Select|Wrap|Line Numbers
- Caption - tblLog
- header - tblLog
- header - tblCosts
- navigation - tblCosts
- footer - tblLog
- navigation -tblLog
This works fine for records that currently exist.
However when I add a new record I produce a unique ID number for tblLog (main part) correctly. However, tblCosts subform will not expand and remains hidden.
In order for me to display the subForm (or atleast a button to allow an addition to it) I have to save the main record.
I assume this is so within my database I fully create the relationship between my main table and my sub table. When I save the ID number from the main table links to the sub and costs can then be added.
I am a bit stuck because I am basically creating a submission form for non conformances and their associated costs. This will be hosted on an intranet allowing users to submit their information.
What I am worried about happening is that when users partially fill out the form if I create an event which uses some form of OnDirty etc to save the main form to allow sub form submission I could end up with partial data or masses of rows within my main table where users began to fill out a form and then left the page when they decided not to bother.
So all in all,
How could I get my subform to display? I don't understand how when I create a new record the ID number assigns correctly to the main form, (I can even close the window and it doesn't save the record, it only saves when I click submit) but the subform does not expand ready for datacapture, eventhough there is a direct link.
Thanks for any help.