AlexN
Registered User.
- Local time
- Tomorrow, 01:10
- Joined
- Nov 10, 2014
- Messages
- 302
Hi everyone,
I’m designing a music collection database, where I input all my music by Artist, Recording (album etc.), Media (CD, LP, mp3 etc.).
There are two significant tables in this database, tblArtists and tblRecordings. There is also a data entry form frmRecordings based on tblRecordings, where control Artist is a combo box with values from tblArtists.
In the NotInList event of this combo box, there is a little piece of code to allow adding new artist name in tblArtists, first finding the space character in the new name registered and then dividing it to FirstName and LastName of the Artist. This way I manage to input new artist by normally writing the name (e.g. Phil Collins) and adding it in tblArtists by FirstName and LastName, in order to have them in alphabetical order (by LastName) in the combo box (or elsewhere).
That works perfectly all right as long as I input an individual artist. However, when it comes to groups (e.g. The Alan Parsons Project) my code is not effective and produces funny results.
Could any of you kind people come with an idea of how I would accomplish adding new groups in tblArtists, while keeping all names in alphabetical order?
Thank you
I’m designing a music collection database, where I input all my music by Artist, Recording (album etc.), Media (CD, LP, mp3 etc.).
There are two significant tables in this database, tblArtists and tblRecordings. There is also a data entry form frmRecordings based on tblRecordings, where control Artist is a combo box with values from tblArtists.
In the NotInList event of this combo box, there is a little piece of code to allow adding new artist name in tblArtists, first finding the space character in the new name registered and then dividing it to FirstName and LastName of the Artist. This way I manage to input new artist by normally writing the name (e.g. Phil Collins) and adding it in tblArtists by FirstName and LastName, in order to have them in alphabetical order (by LastName) in the combo box (or elsewhere).
That works perfectly all right as long as I input an individual artist. However, when it comes to groups (e.g. The Alan Parsons Project) my code is not effective and produces funny results.
Could any of you kind people come with an idea of how I would accomplish adding new groups in tblArtists, while keeping all names in alphabetical order?
Thank you