Hi All - I am new to the forum (and looking forward to being part of it), also a novice as far as Access is concerned, so please bear with me.
I have looked at the responses to similar questions on this forum regarding auto-filling and don't find what I am looking for, hence this one.
Let me sketch it as best I can:
I have a parent form with a child form in it.
I have the parent table (tblEvents) and a child table (tblResults)
The parent table has an Autonumber field in it as the primary key (events_ID) and I have a field in the child table (results_ID) as the foreign key.
What I need to happen is:
When a User enters a new record in the "events" table the key field (events_ID) is allocated a unique number by way of the autonumber action. When the User now moves to start capturing multiple records in the child table (tblResults) I want the foreign key field (results_ID) to autofill so as to be the same as the value of the key field in the parent table.
This is simply so that the User does not have to manually type in the value in the child table. I would then want to prevent the user from editing the value in the child table foreign key field, bearing in mind that the field is simply a number field (Long Integer) and has to remain in sync with the parent table primary key field's value.
Any help will be appreciated and please keep in mind that if you are going to tell me what to do, you are gong to have to tell me how to do it as well
Thanks
I have looked at the responses to similar questions on this forum regarding auto-filling and don't find what I am looking for, hence this one.
Let me sketch it as best I can:
I have a parent form with a child form in it.
I have the parent table (tblEvents) and a child table (tblResults)
The parent table has an Autonumber field in it as the primary key (events_ID) and I have a field in the child table (results_ID) as the foreign key.
What I need to happen is:
When a User enters a new record in the "events" table the key field (events_ID) is allocated a unique number by way of the autonumber action. When the User now moves to start capturing multiple records in the child table (tblResults) I want the foreign key field (results_ID) to autofill so as to be the same as the value of the key field in the parent table.
This is simply so that the User does not have to manually type in the value in the child table. I would then want to prevent the user from editing the value in the child table foreign key field, bearing in mind that the field is simply a number field (Long Integer) and has to remain in sync with the parent table primary key field's value.
Any help will be appreciated and please keep in mind that if you are going to tell me what to do, you are gong to have to tell me how to do it as well

Thanks