D
David
Hello all,
I am using access 2003, All data can be read-only.
I have a main unbound form with one combo box, and 4 bound subforms. The
record source for the subforms are pass through queries.
I can't follow normal procedure and link the subforms to the combo box, I
get an error that says I can't use a pass through query as a record source
for a subform.
So I use filtering like this
Private Sub cbo_WG_AfterUpdate()
Me.sfrm_WG.Form.Filter = "[WorkGroup] = '" & Me.cbo_WG & "'"
Me.sfrm_WG.Form.FilterOn = True
Me.sfrm_WG.Visible = True
End Sub
With this technique, the subform load and query when the main form is
loaded, PROBLEM is 5 seconds or so after the data is displayed, I get the
following error
ODBC - Call Failed
[Microsoft][ODBC Driver Manager] Function sequence error (#0)
This message always pops up one less time then the number of subforms I
have. Turns values to #Name?, except the last subform.
After the error popup messages, I can select a value from the combo box, and
it filters and populates the subforms fine...
How can I either re-structure my approach or prevent the error popup message?
Any assistance you can provide is greatly appreciated.
Thank you,
Dave
I am using access 2003, All data can be read-only.
I have a main unbound form with one combo box, and 4 bound subforms. The
record source for the subforms are pass through queries.
I can't follow normal procedure and link the subforms to the combo box, I
get an error that says I can't use a pass through query as a record source
for a subform.
So I use filtering like this
Private Sub cbo_WG_AfterUpdate()
Me.sfrm_WG.Form.Filter = "[WorkGroup] = '" & Me.cbo_WG & "'"
Me.sfrm_WG.Form.FilterOn = True
Me.sfrm_WG.Visible = True
End Sub
With this technique, the subform load and query when the main form is
loaded, PROBLEM is 5 seconds or so after the data is displayed, I get the
following error
ODBC - Call Failed
[Microsoft][ODBC Driver Manager] Function sequence error (#0)
This message always pops up one less time then the number of subforms I
have. Turns values to #Name?, except the last subform.
After the error popup messages, I can select a value from the combo box, and
it filters and populates the subforms fine...
How can I either re-structure my approach or prevent the error popup message?
Any assistance you can provide is greatly appreciated.
Thank you,
Dave