What am I trying to acheive? I want to call a search form (Form B) from another form (Form A). Basically the user chooses a value in form B which is then returned to textbox in Form A.
I can think of a couple of ways of doing this:
1) Have a public variable that is set by Form B then Form A picks this value up when Form B is closed
2) Have form B populate the textbox directly in form A before closing.
I am not fond of these methods but can't find anything that resembles the good old fashioned return variable. I would be making the call to the search screen in various places so it would be a generic form (favours option 1). I am sure I have done this a different way but its years since I wrote any VBA so I've probably forgotten it.
Thanks in advance.
Mark.
Mark Davies
Warwickshire County Council
I can think of a couple of ways of doing this:
1) Have a public variable that is set by Form B then Form A picks this value up when Form B is closed
2) Have form B populate the textbox directly in form A before closing.
I am not fond of these methods but can't find anything that resembles the good old fashioned return variable. I would be making the call to the search screen in various places so it would be a generic form (favours option 1). I am sure I have done this a different way but its years since I wrote any VBA so I've probably forgotten it.
Thanks in advance.
Mark.
Mark Davies
Warwickshire County Council