I am designing a call logging database. I have a Computer Users table that is linked using a 1 to many relationship to a call logging table. On the call logging form, there is a button, that opens the Computer Users form to add new users to the database. However, in order for the combo box containing the user details on the call logging form to update, I refresh on close of the users form using the following code.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
This works fine when data is present in the open record on the call logging form, but if I try to create a new record using the call logging form, then want to add a new user, and close the form to update the user combo box, the following message appears and doesn’t update unless I close the form and reopen it.
“You cannot add or change a record because a related record is required in the Users table!”
Any ideas? Please help.
Thanks in advance
Lee
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
This works fine when data is present in the open record on the call logging form, but if I try to create a new record using the call logging form, then want to add a new user, and close the form to update the user combo box, the following message appears and doesn’t update unless I close the form and reopen it.
“You cannot add or change a record because a related record is required in the Users table!”
Any ideas? Please help.
Thanks in advance
Lee