Add a Registration number from a form to an email

ddrew

seasoned user
Local time
Today, 09:30
Joined
Jan 26, 2003
Messages
911
My form forces the user to send an email to me when using the database for the first time.

I now have a registration number on the form that is hardcoded into each copy by me. It is held in (frmRegister.RegistrationNumber). I already have code to get the email to send but now ned to add the contents of this field to the email.

Code:
     .HTMLBody = "<HTMLtags>This email confirms that a new user " & _
            olApp.Application.Session.Accounts.Item(1).SmtpAddress & _
            " has registered a copy of Gundog Manager.

The registration number of this copy is [COLOR="Red"](frmRegister.RegistrationNumber)[/COLOR][COLOR="Black"][/COLOR]</HTMLtags>"
 
What exactly do you mean by..
on the form that is hardcoded into each copy by me.

If you are running the email CODE from the same form you can just use Me.theControlName
 

Users who are viewing this thread

Back
Top Bottom