All,
As I said in the intro forum, many thanks for such a helpful and informative website. It has helped me immensely in building my database.
Now to the question. I am building myself a music database. As part of this it uses many to many tables (and junctions). For example, we have
Songs (all unique)
Composers (all unique)
Composers are on more than one Song and Songs can have multiple Composers
There is more info on Albums, Artists, Genres, Formats and so on. Tracks are made up of Songs by different Artists.
For data entry I have a Form with Subforms that essentially has Album details and underneath a Tracks subform. When entering Tracks I use a combo box to enter Songs. A Notinlist fires to allow a new Song entry (using the Allen Browne code).
This is all fine and seems to work well. However, I then need to open a separate form ("ComposedBy") to enter Composers for each new Song (as a given unique Song can have multiple Composers).
Is there any way to use Notinlist to open the ComposedBy form with the Song field temporarily entered as the new Song against which I can enter record(s) for Composer(s)? I tried to use the OpenArgs property and the "On Load" function but can only get this to work when a Text Box is used and not to take a new entry and populate a Combo Box on a different form.
This probably is not that clear so questions welcome! Thanks.
PS I can follow some of the VBA stuff on these forums (and have used it in part) but become out of my depth very quickly!
As I said in the intro forum, many thanks for such a helpful and informative website. It has helped me immensely in building my database.
Now to the question. I am building myself a music database. As part of this it uses many to many tables (and junctions). For example, we have
Songs (all unique)
Composers (all unique)
Composers are on more than one Song and Songs can have multiple Composers
There is more info on Albums, Artists, Genres, Formats and so on. Tracks are made up of Songs by different Artists.
For data entry I have a Form with Subforms that essentially has Album details and underneath a Tracks subform. When entering Tracks I use a combo box to enter Songs. A Notinlist fires to allow a new Song entry (using the Allen Browne code).
This is all fine and seems to work well. However, I then need to open a separate form ("ComposedBy") to enter Composers for each new Song (as a given unique Song can have multiple Composers).
Is there any way to use Notinlist to open the ComposedBy form with the Song field temporarily entered as the new Song against which I can enter record(s) for Composer(s)? I tried to use the OpenArgs property and the "On Load" function but can only get this to work when a Text Box is used and not to take a new entry and populate a Combo Box on a different form.
This probably is not that clear so questions welcome! Thanks.
PS I can follow some of the VBA stuff on these forums (and have used it in part) but become out of my depth very quickly!
Last edited: