VBA Open form as message will open another form

Hi every one, I don’t know if it can be done, I have a Form " FrmMg " I use it as a pop  up message, what I need is  to be able for the user when click the word (HERE) another form gets opened.

DoCmd.OpenForm " FrmMg "
Forms!FrmMg.TxAA.Value = "Select a Customer From The List OR click (HERE) to enter a new Customer “
I know I can have readymade form with control contain the word “HERE” linked to the other form,  but I’m trying to use same message form for many different scenarios,
Ronald MalkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Is it a normal or modal pop-up? In the first case you can use DoCmd.OpenForm to open a further form.

But pop-up over pop-uip form is bad UI and user experience. Can you give use more context for a probably better approach?

When you want to resuse a form and open it multiple times in parallel, then you cannot use DoCmd.OpenForm. In this case you need to create an new instance of the form in VBA, e.g.

Dim newForm As Form_FrmMg
Set newForm = New Form_Mg

Open in new window


But again: more context and a concise and complete sample would be helpful for us to better help you.
Gustav BrockCIOCommented:
Set a variable holding the form name, say, "NewCustomer":

FormToOpen = "NewCustomer" ' or other form name.
Forms!FrmMg.TxAA.Value = "Select a Customer From The List OR click (" & FormToOpen & ") to enter a new Customer."

Open in new window

Ronald MalkAuthor Commented:
Sorry,I may have had to say I'm not a real programmer, if you please  I would need the complete code
PatHartmanCommented:
You cannot embed a hyperlink inside a text string.  Just change the message so instead of press "here", it says press "button2" and add a button to open the second form.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
hyperlinks

From novice to tech pro — start learning today.