In Access 97, I have a Payees table in a one-to-many relationship with a Trans table, linked to each other on a Social Security Number field (the link is Payees.SSN --> Trans.TransSSN). Both fields are Text, FieldSize 11, InputMask "000\-00\-0000;0;_". Payees.SSN is a key field, while Trans.TransSSN is not the key field but is indexed as "Yes (Duplicates OK)".
When I use DAO objects in VBA code to add a record to the Trans table, using an SSN value that already exists in the Payees table, everything works fine.
When I try to do the same thing through the user interface, I get an error message that says there is no matching record in the Payees table. This happens whether I copy and paste the SSN from the Payees table to the new reocrd in the Trans table, or enter the same number manually.
Does anyone know why this is happening and how I can prevent it? Thanks.
When I use DAO objects in VBA code to add a record to the Trans table, using an SSN value that already exists in the Payees table, everything works fine.
When I try to do the same thing through the user interface, I get an error message that says there is no matching record in the Payees table. This happens whether I copy and paste the SSN from the Payees table to the new reocrd in the Trans table, or enter the same number manually.
Does anyone know why this is happening and how I can prevent it? Thanks.