A
AltaEgo
Hi all,
Whilst I have been not using Access for five years, it has been even longer
since I created forms to enter data and I feel like I am back in the Access
newbie ranks.
After normalising someone else's statistics database, I am having problems
with a subform.
My memory was that to create an add form covering two tables, it is simply a
case of designing a subform linked to the 'many' side table and a form
linked to the 'one' side table. After creating the main form drag the sub
into place, check that Child and Master are linked correctly and that should
be it. Open the main form and add a record and the sub should automatically
update correctly as lines are entered. Since this is not happening for me, I
obviously have something wrong.
When I open my main form (which has its property set to data entry = yes).
It displays no record and allows entry of new data. However, if I have the
subform set as data entry = yes, the subform displays no lines at all; if I
have the subform data entry property = no, the subform displays records
relating to previous data. In other words, no matter how I set my subform
properties it does not display in the main form ready for new data.
Could it be that the main table ID field not being an autonumber is a
problem (I use Dsum to get a default value)?
Could it be that I need my main form bound to a query that links to the 2nd
table instead of a form?
Any help would be very much appreciated.
Whilst I have been not using Access for five years, it has been even longer
since I created forms to enter data and I feel like I am back in the Access
newbie ranks.
After normalising someone else's statistics database, I am having problems
with a subform.
My memory was that to create an add form covering two tables, it is simply a
case of designing a subform linked to the 'many' side table and a form
linked to the 'one' side table. After creating the main form drag the sub
into place, check that Child and Master are linked correctly and that should
be it. Open the main form and add a record and the sub should automatically
update correctly as lines are entered. Since this is not happening for me, I
obviously have something wrong.
When I open my main form (which has its property set to data entry = yes).
It displays no record and allows entry of new data. However, if I have the
subform set as data entry = yes, the subform displays no lines at all; if I
have the subform data entry property = no, the subform displays records
relating to previous data. In other words, no matter how I set my subform
properties it does not display in the main form ready for new data.
Could it be that the main table ID field not being an autonumber is a
problem (I use Dsum to get a default value)?
Could it be that I need my main form bound to a query that links to the 2nd
table instead of a form?
Any help would be very much appreciated.