listbox connection to subform

arage

Registered User.
Local time
Today, 11:41
Joined
Dec 30, 2000
Messages
537
listbox connection to subform
I’m trying to specify a link box as the linkMasterField to my subform. Could someone tell me if below is on the right track b/c it is giving me some problems, essentially listbox value is meant to filter (further) the subform. Below code applies to the list box as it appears on the main form.

Private Sub lstType_AfterUpdate()

'establish linkMasterFields & linkChildFields in the subform...
Me![NewQuery subform].LinkMasterFields = Me![lstType].value
Me![NewQuery subform].LinkChildFields = Me![NewQuery subform].Form![PromotionType]

End Sub
 

Users who are viewing this thread

Back
Top Bottom