I am a novice user of Access. For past several weeks I have been trying to develop a Database for a CD collections. I am running into a couple of problems.
TABLES: (not all tables or fields are listed here):
1. tblSongs: List of Songs (SongID / Primary Key PK; RecordingArtistID / Foreign Key FK)
2. tblArtists: List of Artists (RecordingArtistsID /PK)
3. tblSongsDetails: TrackID / PK; SongID / FK; RecordingID/FK; RecordingArtistID /FK
4. tblCDDetails: RecordingID / PK; SongID / FK; RecordingArtistID /FK;
FORMS:
1. frmSongs: a form to add to the list of songs)
2. frmArtists: a form to add to the names of artists)
3. sfrmSongsDetails: it is a subform added to the bottom of the CD Details form. Fields include are: TrackID, TrackNo, SongID, ArtistID)
4. frmCDDetails: a main form to add CDs to the Database with fields like RecordingID, CategoryID, LanguageID etc. on the main part and includes the sfrmSongDetails as a subform.
Problem#1:
The RecordingArtistID field on the sfrm includes events (Not On List and On DoubleClick) that prompts me to add an artist who does not exist in the tblArtists. It works just fine.
I used the save event processes to include a song which may not be on the tblSongs. This does not work. I get the message: You tried to assign the Null Value to a variable that is not a Variant data type.
Why do I get this message? When both the SongID and RecordingArtistID are similar fields (Auto Number and Primary Key)
Problem#2:
When I update the tblSongs with new songs, sfrmSongDetails does not reflect this change (which is based on tblSongDetails).
Can you please help?
TABLES: (not all tables or fields are listed here):
1. tblSongs: List of Songs (SongID / Primary Key PK; RecordingArtistID / Foreign Key FK)
2. tblArtists: List of Artists (RecordingArtistsID /PK)
3. tblSongsDetails: TrackID / PK; SongID / FK; RecordingID/FK; RecordingArtistID /FK
4. tblCDDetails: RecordingID / PK; SongID / FK; RecordingArtistID /FK;
FORMS:
1. frmSongs: a form to add to the list of songs)
2. frmArtists: a form to add to the names of artists)
3. sfrmSongsDetails: it is a subform added to the bottom of the CD Details form. Fields include are: TrackID, TrackNo, SongID, ArtistID)
4. frmCDDetails: a main form to add CDs to the Database with fields like RecordingID, CategoryID, LanguageID etc. on the main part and includes the sfrmSongDetails as a subform.
Problem#1:
The RecordingArtistID field on the sfrm includes events (Not On List and On DoubleClick) that prompts me to add an artist who does not exist in the tblArtists. It works just fine.
I used the save event processes to include a song which may not be on the tblSongs. This does not work. I get the message: You tried to assign the Null Value to a variable that is not a Variant data type.
Why do I get this message? When both the SongID and RecordingArtistID are similar fields (Auto Number and Primary Key)
Problem#2:
When I update the tblSongs with new songs, sfrmSongDetails does not reflect this change (which is based on tblSongDetails).
Can you please help?