G
Guest
Hi
I have the following problem
In a form i have a button which call a public procedure (the code has 2
parameters)
1. Call Undo_Rec(Me.Form.Name, Me!City.Name) the second parameters is the
field that i want to sent the focus after the undo
2. Public Sub Undo_Rec(FormNam As String, FormFld As Varriant) this is the
procedure
My problem is that i don't know the syntax of the command to return the
focus in the field of the form.
If NoUndo = False Then Forms(FormNam!FormFld).SetFocus "this command is
wrong"
I have the following problem
In a form i have a button which call a public procedure (the code has 2
parameters)
1. Call Undo_Rec(Me.Form.Name, Me!City.Name) the second parameters is the
field that i want to sent the focus after the undo
2. Public Sub Undo_Rec(FormNam As String, FormFld As Varriant) this is the
procedure
My problem is that i don't know the syntax of the command to return the
focus in the field of the form.
If NoUndo = False Then Forms(FormNam!FormFld).SetFocus "this command is
wrong"