' runs the batch file
shell Test.cmd
This is now causing the operation to fail and windows security is blocking it from running.
is there another way to run a bat file from VBS/modules
Is it possible to have the code changed to send the emails from a different outlook email address. this is my code..
I get this to work by creating a second profile in outlook and select that and it send correct but looking for a way now to have the code do this so the user doent need to do...
Resolved it back changing the method - Thanks
Dim MyDB As Database
Dim MyRS As Recordset
Dim MyForm As Form
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Dim...
Moved loop to after
End With and now getting's this error..
on debug this is the line highlighted in yellow
.BodyFormat = olFormatHTML
end With
MyRS.MoveNext
Loop
End Sub
Dim MyDB As Database
Dim MyRS As Recordset
Dim OutlookApp As Outlook.Application
Dim OutlookMail As Outlook.MailItem
Set MyDB = CurrentDb
Set MyRS = MyDB.OpenRecordset("test")
MyRS.MoveFirst
Do Until MyRS.EOF
Set OutlookApp = New Outlook.Application
Set OutlookMail =...
Dim MyDB As Database
Dim MyRS As Recordset
Dim OutlookApp As Outlook.Application
Dim OutlookMail As Outlook.MailItem
Set MyDB = CurrentDb
Set MyRS = MyDB.OpenRecordset("test")
MyRS.MoveFirst
Do Until MyRS.EOF
Set OutlookApp = New Outlook.Application
Set OutlookMail =...
so this is what i have and it works in that it just sends an email to the first contact in the table, how do i set this to run through all..
Dim MyDB As Database
Dim MyRS As Recordset
Dim OutlookApp As Outlook.Application
Dim OutlookMail As Outlook.MailItem
Set MyDB = CurrentDb
Set MyRS =...
Hoi,
I need to have access send on a daily basis emails to customers which the data is stored in a table.
Any suggestions for the best way, can i just set up access to send the emails? and also attached two pdf files
I need to stop a record from being saved when the user closes the database and dots click save button on the form
Seems that if you started a data entery and then stopped and just closes the database the record is saved in the able but blank?