Keith Nichols
Registered User.
- Local time
- Today, 07:39
- Joined
- Jan 27, 2006
- Messages
- 431
I have an SQL query that filters a subform based on the selected item in an option frame that runs on the after update event of the option frame.
When I try this out, I get the following error message:
I then ran the following snippet and found that the form is not recognized as being loaded when it is "open" as a subform
If I open the subform as a form as well as having the main form & subform open, i.e. open a second instance of the subform from the database window, it filters fine.
I have been able to requery the subform so where am I going wrong?
Code:
Forms!fsubPrjPersonnel.RecordSource = SQLText & WClause
2450 - xxx can't find the form 'fsubPrjPersonnel' referred to in a macro expressions or Visual Basic code.
I then ran the following snippet and found that the form is not recognized as being loaded when it is "open" as a subform
Code:
If IsLoaded("fsubPrjPersonnel") Then
MsgBox "form found"
End If
If I open the subform as a form as well as having the main form & subform open, i.e. open a second instance of the subform from the database window, it filters fine.
I have been able to requery the subform so where am I going wrong?
