Question Sub forms

Super Suarez

Registered User.
Local time
Yesterday, 21:27
Joined
Jul 10, 2013
Messages
36
Hi All,

I have a form 'A' which has six edit buttons. On pressing any edit button I want to open form 'B' which I can do.

On starting form 'B' though, I need to change the control source (depending on which edit button was pressed) which I do by the following, but how do I lead into the code knowing which edit button had been pressed from form 'A'?

Private Sub Form_Load()
Form.NavigationButtons = False
Me.Text3.ControlSource = "[Returned Date]"

End Sub
 
Try passing the Button name or some identifier for each button in the OpenArgs and use the Form 'B' OnOpen method to set the source..
 
Last edited:

Users who are viewing this thread

Back
Top Bottom