Hello all,
1st posting in this forum as Access is not my numero uno application. I know extensive VBA for Excel but only limited for Access (the syntax confuses me) so please be kind.
Here is the setup:
I have a main form (called frmSite_Details) and a subform (called sfrmQueries)
I have a combobox on the main form called cbCust and a textbox also on the main form called tbOutlet (as well as various other textboxes and labels)
I have set up the main form so that when cbCust is changed, tbOutlet (and all the other textboxes) reflects this, using
Me.RecordsetClone.FindFirst "[Cust_Code] = '" & Me![cbCust] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
(This was generated automatically by how I built cbCust)
what I would also like to happen is that when cbcust is changed, thye subform is filtered based on the contents of tbOutlet which is a common field to the main form and the sub form
Hope someone can help me out here
TIA Rgds
~Geoff~
1st posting in this forum as Access is not my numero uno application. I know extensive VBA for Excel but only limited for Access (the syntax confuses me) so please be kind.
Here is the setup:
I have a main form (called frmSite_Details) and a subform (called sfrmQueries)
I have a combobox on the main form called cbCust and a textbox also on the main form called tbOutlet (as well as various other textboxes and labels)
I have set up the main form so that when cbCust is changed, tbOutlet (and all the other textboxes) reflects this, using
Me.RecordsetClone.FindFirst "[Cust_Code] = '" & Me![cbCust] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
(This was generated automatically by how I built cbCust)
what I would also like to happen is that when cbcust is changed, thye subform is filtered based on the contents of tbOutlet which is a common field to the main form and the sub form
Hope someone can help me out here
TIA Rgds
~Geoff~