Hello everyone,
I have a question how to apply the OpenArg to a subform
I have an application to change the languague depending on the user decision. All works good! however when in the subform there is not working, maybe I have something wrong in the syntaxis of the code
I highly appreciate the help! =)
Code:
Private Sub Form_Open(Cancel As Integer)
MainForm_Frm.IDCostlbl.Caption = DLookup("[" & Me.OpenArgs & "]", "[Language_tbl]", "[label]='IDCostlbl'")
MainForm_Frm.NoPartCostolbl.Caption = DLookup("[" & Me.OpenArgs & "]", "[Language_tbl]", "[label]='NoPartCostolbl'")
MainForm_Frm.DesCostNPlbl.Caption = DLookup("[" & Me.OpenArgs & "]", "[Language_tbl]", "[label]='DesCostNPlbl'")
End Sub