Nothing wrote:[color=blue]
> I still can not get this dumb thing to work.
>
> I have added the Me.sub-frmEmplyeeData.Form.Requery to teh combo box's
> AfterUpdate event and the query re-runs but will not sort on the
> department choice in the combo box.
>
> I dont get it. I can manually query for a department name from the query
> and it will accept the input and filter fine, but when I try to make the
> sub form do the same thing, it just will not work.
>
> Anyone else have any ideas cause I fresh out now. I must be missing
> something somewhere but as for what I have no idea.
>
> Michael Charney
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]
In the Combo's AfterUpdate event you could try something like this
Dim strFilter As String
'assumes the dept is named dept and is a string
'value and not a number. You may be using a
'number in a lookup table, not sure what you
'are using. Thus the quotes around the ComboName.
strFilter = "Dept = '" & Me.ComboName & "'"
Forms!MainFormName!SubFormName.Form.Filter = strFilter
Forms!MainFormName!SubFormName.Form.FilterOn = True
As also mentioned regarding the Link Master/Child, single click on the
subform and pull up the property sheet for it. You will see the
properties to link the Master to Child.