What code are you using?
I use code like this and never get the prompt:
'*********************************************
Private Function MailMessage() As Boolean
Dim objOutlook As Outlook.Application
Dim strText As String
Dim strFile As String
Dim rsUsers As Recordset
On Error GoTo errHandler
Set objOutlook = New Outlook.Application
With objOutlook.CreateItem(olMailItem)
'set the subject body and text of the msg
strText = "This is the data you requested"
strText = strText & vbCr & vbCr & cSignature & vbCr & vbCr
.Subject = getSubject
.Body = strText
.Importance = olImportanceNormal
'Add attachments to the Email
'it is assumed that the spreadsheet file has already been created
.Attachments.Add (cDailyExportedExcelFile)
'.Attachments.Add (cMontlhlyExportedExcelFile)
Set rsUsers = CurrentDb.OpenRecordset("SELECT * FROM tblUsers", dbOpenSnapshot)
If Not rsUsers.EOF Then
rsUsers.MoveFirst
Do While Not rsUsers.EOF
.Recipients.Add (rsUsers.Fields(0).Value)
rsUsers.MoveNext
Loop
Else
MsgBox cNoUsers & Chr(13) & Chr(13) & cCheckUserForm, vbCritical, cCannotProceedTitle
End If
.Display
'.Send
MailMessage = True
End With
CleanUpCode:
On Error Resume Next
rsUsers.Close
Set rsUsers = Nothing
Set objOutlook = Nothing
'lastly we don't want to litter the users harddrive with
'excel files so delete the file
Kill cDailyExportedExcelFile
Kill cMontlhlyExportedExcelFile
Err.Clear
Exit Function
errHandler:
'notify user of what went wrong and exit this module
MsgBox Err.Description, vbCritical, "Cannot Proceed"
Resume CleanUpCode
End Function
'******************************************************
Are you trying to do something similiar to what I'm doing?
Bill Nielsen