|
-
Jan 29th, 2002, 09:26 AM
#1
Thread Starter
Addicted Member
-
Jan 30th, 2002, 03:39 PM
#2
Frenzied Member
Would something like this help? It will send the file without the need for the user to send it from the Outbox.
VB Code:
Private Sub SendIt(MyFile As String)
Dim objOutlook As New Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
'Open the file to be sent
Open MyFile For Input As #1
'Create new message
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
.To = "userid@domain"
.Subject = "Field data for Joe Blow"
.Body = input$(LOF(1), #1)
.Send
End With
Set objOutlookMsg = Nothing
'Close Outlook instance: Important!
Set objOutlook = Nothing
Close #1
End Sub
You don't specify as to where the database is located, so I can't offer anything more at this time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|