Hi
I need the foreign key value to update when I enter a new record.
I've tried setting the default value to the primary key value of the parent form and that didn't work. I've also had the suggestion of setting the BeforeInsert event, I used the following code here and this didn't work either.
[Me!ParentForm.PrimaryKey=Forms!PopUpForm!ForeignKey]
Receive the following message:
The expression Before Insert you entered as the event prperty setting produced the following error: The object doesn't contain the automation object 'Me.'
Both of the forms are sourced through queries.
Any help would be appreciated.
Steven811
I need the foreign key value to update when I enter a new record.
I've tried setting the default value to the primary key value of the parent form and that didn't work. I've also had the suggestion of setting the BeforeInsert event, I used the following code here and this didn't work either.
[Me!ParentForm.PrimaryKey=Forms!PopUpForm!ForeignKey]
Receive the following message:
The expression Before Insert you entered as the event prperty setting produced the following error: The object doesn't contain the automation object 'Me.'
Both of the forms are sourced through queries.
Any help would be appreciated.
Steven811