I have a hard coded command button that send a email when they click on it. I need a way for the user to be prompted to input the address or else pull it from the Company's information, which would be better I think.
Field name is E Mail and command button is named Command209. Here is the code behind the command button.
The Company's information is stored in table Company and the field name is Company.Hmmm, how could I make it use the Company name instead of being hard coded? What do you think, prompt or use Company ?
DoCmd.SendObject acSendNoObject, "FormTyp", acFormatHTML, [E Mail], , , , "From Anonymous Person", True, ""