Hello all,
Here is the situation i confront with and need your help:
- I have different forms that use to manage different information's (like countries contacts,technical team's contacts etc)
- the details regarding this contacts are shown in a datasheet subform found in each main form
- in this subform(datasheet) i have the e-mail adsress hyperlinked and with a click event that copies that address mail (clicked) to a textbox found on the main form (where the subform is as well)
- this type of "structure" that i build is found in all the main forms ( main form/subform/email field hyperlinked with click event to copy it to that main form textbox the user is )
What i want to do now is to unify all this textboxes that may contain the e-mail addresses copied by the users in the different forms they were and have a in every form to have a textbox that will show the exact same addresses found in the unified one.
So when the user clicks the hyperlinked email,this to be copied in the unified textbox i created and all the other textboxes to show all the values that are in this unified textbox.
I found a solution:
- first to create another form with a textbox and all the clicked e-mails to be copied here (already managed to do this to work with setfocus to that form and after to textbox and copy there with setfocus back to the form were the email was clicked)
From here i have some code that uses that textbox as To to send outlook e-mail (this works fine)
But for this solution i must have a macro that opens this form(with the unified box) in order for the click event to find the unified textbox and copy to it + there is another window open in the taskbar -which i would prefer not to have
I think i should be able to find a more pleasant solution using a public variable or something like that to store all the emails that the users might click and use that variable as To value for Outlook.
But unfortunately although i searched for some information's to this i'm not able to do it.
Any advice or another solution so i don't have to use the form one?
Thanks for all the replies and sorry for the wall of text.
Here is the situation i confront with and need your help:
- I have different forms that use to manage different information's (like countries contacts,technical team's contacts etc)
- the details regarding this contacts are shown in a datasheet subform found in each main form
- in this subform(datasheet) i have the e-mail adsress hyperlinked and with a click event that copies that address mail (clicked) to a textbox found on the main form (where the subform is as well)
- this type of "structure" that i build is found in all the main forms ( main form/subform/email field hyperlinked with click event to copy it to that main form textbox the user is )
What i want to do now is to unify all this textboxes that may contain the e-mail addresses copied by the users in the different forms they were and have a in every form to have a textbox that will show the exact same addresses found in the unified one.
So when the user clicks the hyperlinked email,this to be copied in the unified textbox i created and all the other textboxes to show all the values that are in this unified textbox.
I found a solution:
- first to create another form with a textbox and all the clicked e-mails to be copied here (already managed to do this to work with setfocus to that form and after to textbox and copy there with setfocus back to the form were the email was clicked)
From here i have some code that uses that textbox as To to send outlook e-mail (this works fine)
But for this solution i must have a macro that opens this form(with the unified box) in order for the click event to find the unified textbox and copy to it + there is another window open in the taskbar -which i would prefer not to have
I think i should be able to find a more pleasant solution using a public variable or something like that to store all the emails that the users might click and use that variable as To value for Outlook.
But unfortunately although i searched for some information's to this i'm not able to do it.
Any advice or another solution so i don't have to use the form one?
Thanks for all the replies and sorry for the wall of text.