I have 2 M:M relationships, as follows:
tblApplication, - AppID, AppDate etc.
tblAnimalDetails - AnimalID, Gender etc.
tblAppSpecies - AppID, AnimalID, SpeciesStatus etc.
tblContacts - ContactID, etc
tblContactApp - AppID, ContactID
I have an application form (frmApplication) that is based on a query (using tblApplication, tblContacts, tblContactApp)
I have a second form (frmAppSpecies), based on a query using tblAppSpecies & tblAnimalDetails. This is a form with a subform.
I've placed a command button on frmApplication, to open frmAppSpecies, with the AppID already added, so that relevant animal information for that particular application can be added.
The code I've put in the button's click event is as follows:
DoCmd.OpenForm "frmAppSpecies", acNormal, , "AppID =" & Me.AppID, acFormEdit, acDialog
I have no coding experience at all, so have cobbled this together from a book, but I'm obviously missing something - can anyone assist?