ShaunWillmott
Registered User.
- Local time
- Today, 15:06
- Joined
- Dec 21, 2001
- Messages
- 17
There are two resident types OR and TS, therefore I have created a Table with base Resident data and another tblResDetail which holds the Resident Type details. The tables have a one to one relationship based on ID and Type and the Resident Table ID is set to Autonumber, Resdetail Primary key is ID & Type.
The issue is when I add a new Resident. At 1st the ResDetail table record created with ResDetailID = 0 and Type correctly, so I created a Before Update event to assign ResDetailID = ResID and this is when I get the error Can't assign value to object.
What am I doing wrong?
I have read many other posts (which has increased my 4 week old knowledge), and tried one which assigned the Resdetail fields to to keys on the form as a default value, but this didn't work.
I can open the table and enter the correct ID without any error???
The issue is when I add a new Resident. At 1st the ResDetail table record created with ResDetailID = 0 and Type correctly, so I created a Before Update event to assign ResDetailID = ResID and this is when I get the error Can't assign value to object.
What am I doing wrong?
I have read many other posts (which has increased my 4 week old knowledge), and tried one which assigned the Resdetail fields to to keys on the form as a default value, but this didn't work.
I can open the table and enter the correct ID without any error???