Good morning,
I have a problem trying to requery a subform from a combo box used to select a category in a main form. I have tried several variations in the coding but nothing seems to work. I know the suform works because when I open it up separately, it asks for the data selected from (combo0) I type in a category and it filters correctly. It appears to be something in the way I am structuring the (Combo0) AfterUpdate property’s coding. This is what I have;
Main Form: Category View Form
Subform: Category View Subform
Combo Box: ComboO
AfterUpdate: Private Sub Combo0_AfterUpdate()
Forms![Category View Form]![Category Query subform].Requery
End Sub
I have tried the above coding which does nothing. I have tried Forms!Category Query subform.Requery
Which produces “Compile Error:
Syntax Error”
message. So my question is what am I doing wrong? Thanks for the feedback!