Access noob, subform help. Error msgs, not allowing edits, & not updating fields...?
I'm working on a home movies database and created a form (MovieDetails) that should allow the user to either edit existing movie information, or add new movies to the database, but the subform is giving me error messages.
When creating new movie entries;
The form allows me to enter data in all other fields, but when I navigate to the subform and select an actor (from a combo box) I get this error message:
When editing an existing movie;
When I navigate to the subform and change an existing actor to a different one using the combo box, I get this error message:
Also, while still editing an existing movie, when I try to add a new actor to the database by typing his/her name into an empty combo box field in the subform, I get this error message:
I should note that after getting this error message (while adding a new actor to an existing movie), and dismissing it, I continued to enter a new actor name and when done, checked the Stars table and sure enough, the new actor was added to the database and assigned a new StarID autonumber. However, even though the Stars table was updated with the new actor, the related StarsToMovies table was not updated with this new info, which it should've been.
Ideally, after adding a new actor to the database using this form, the Stars and related StarsToMovies table should both be updated. In the StarsToMovies table the actors name, along with his/her new StarID and MovieID should be added, but it isnt.
If you check out my sample DB, look for the actor named 9999. It is the test actor I entered through the form. You'll see that it appears in the Stars table, with an assigned StarID (85), but not at all in the StarsToMovies table. I added this actor to the movie A.I. Artificial Intelligence So it shoud've been assigned a MovieID of "1".
Could someone have a look and tell me whats wrong? I've spent hours trying to diagnose it but again, i'm still a noob!
Thanks!
I'm working on a home movies database and created a form (MovieDetails) that should allow the user to either edit existing movie information, or add new movies to the database, but the subform is giving me error messages.
When creating new movie entries;
The form allows me to enter data in all other fields, but when I navigate to the subform and select an actor (from a combo box) I get this error message:
I have no idea why...Field cannot be updated
When editing an existing movie;
When I navigate to the subform and change an existing actor to a different one using the combo box, I get this error message:
A PK error, I know, but I dont know why...The changes you requested to the database were not successfull because they would create duplicate values in the index, primary key, or relationship... etc
Also, while still editing an existing movie, when I try to add a new actor to the database by typing his/her name into an empty combo box field in the subform, I get this error message:
and again, I have no idea why...! Field cannot be updated
I should note that after getting this error message (while adding a new actor to an existing movie), and dismissing it, I continued to enter a new actor name and when done, checked the Stars table and sure enough, the new actor was added to the database and assigned a new StarID autonumber. However, even though the Stars table was updated with the new actor, the related StarsToMovies table was not updated with this new info, which it should've been.
Ideally, after adding a new actor to the database using this form, the Stars and related StarsToMovies table should both be updated. In the StarsToMovies table the actors name, along with his/her new StarID and MovieID should be added, but it isnt.
If you check out my sample DB, look for the actor named 9999. It is the test actor I entered through the form. You'll see that it appears in the Stars table, with an assigned StarID (85), but not at all in the StarsToMovies table. I added this actor to the movie A.I. Artificial Intelligence So it shoud've been assigned a MovieID of "1".
Could someone have a look and tell me whats wrong? I've spent hours trying to diagnose it but again, i'm still a noob!
Thanks!