ok, almost got it but have some code problems that are still holding everything up. I have successfully got it to copy the data held in the defaultcboanimalID (mainform) combo to the subform cboanimalID combo.However, It will not requery the table and fill in the subform based upon the copy.
At the Docmd Requery, it gives me an error '2019: there is no field in current record' Although the mainform still has focus (I think) it still should call for a subform requery without actually calling focus to the subform. This way I can continue to pull up data based upon the combo in the mainform. Notice the column(0) RecordID and Column(1) AnimalID. Just need it to pull up the animals data for the one picked in the mainform combo.
The 'DoCmd.GoToControl "me.navigationsubform!cboanimalID",The subform would not recognize it. I was experimenting with it but could never get it to work. Don't think I need it now?.
The 'DoCmd.Save , "Me.NavigationSubform" I tried but it did not make it work even if I added in the 'cboanimalID field name. If data is on a form and has not been changed, does it have to be saved before moving on? I am asking because I do not know.
Private Sub defaultcboAnimalID_AfterUpdate()
'DoCmd.GoToControl "me.navigationsubform!cboanimalID"
'DoCmd.Save , "Me.NavigationSubform"
Me.NavigationSubform!cboanimalID = defaultcboAnimalID.Column(0) 'column (0) RecordID , column(1) AnimlID This part OK
DoCmd.Requery "me.navigationsubform!cboanimalID"
'requery the entire subform. Here is the problem? It will not work with or without the 'cboanimalID'
End Sub
I was hoping someone has some ideas?
Thanks
Blade