I created a button in an MS Access 2007 form, when pressed, emails a message that contains an ID number which is formatted as a number. Let's say the field name for the ID number is ID. What is the correct syntax for the number field, ID, so that the number is visible in the email message? A sample code follows:
Code:
Private Sub Command55_Click()
DoCmd.SendObject _
, _
, _
, _
[eMailTo], _
, _
, _
"Email Message Header", _
"Your ID number is " & [ID] & ".", _
False
End Sub
Comment