Hi all,
I am tring with a cobobox (afterupdate) when I make selection to open another form "fm_Inspection" with where condition and I need to apply OpenArgs to subform "fm_PSD" on the opened form with this code:
On Load on the subform "fm_PSD" a have Me.Code= OpenArgs.
However, I miss something and the code doesn't work
I am tring with a cobobox (afterupdate) when I make selection to open another form "fm_Inspection" with where condition and I need to apply OpenArgs to subform "fm_PSD" on the opened form with this code:
Code:
If Me.Dirty = True Then
Me.Dirty = False
End If
If Me.Type = "KP" Then
DoCmd.OpenForm "fm_Inspection", , , [Inspection ID]=" & Me.Inspection, , , Me!fm_PSD.Form!Code
Exit Sub
End If
However, I miss something and the code doesn't work