OK, so from my last post (http://www.access-programmers.co.uk/forums/showthread.php?t=197719) I have had no replies and research, 2 weeks worth,
has indicated that this is an overly complex way of doing what I would like.
So my research as shown that the easiest method would be to simply (?) call the form directly from Outlook and this is where I am stuck. I have searched several boards and found massive amounts if information on how to get Access to send an email through Outlook but only 2 articles on using VB to get Outlook to enter email details in a table and 0 articles about getting Outlook to launch an Access form.
Currently my most successful code is:-
I think this opens the connection to the db and the table/recordset I want to work with.
Could anyone please tell me what the code is to launch the NewOrder form?
I have tried the DoCmd.OpenForm method but regardless of syntax I keep getting the 424 Object Required error.
Help please...
has indicated that this is an overly complex way of doing what I would like.
So my research as shown that the easiest method would be to simply (?) call the form directly from Outlook and this is where I am stuck. I have searched several boards and found massive amounts if information on how to get Access to send an email through Outlook but only 2 articles on using VB to get Outlook to enter email details in a table and 0 articles about getting Outlook to launch an Access form.
Currently my most successful code is:-
Code:
Sub Application_NewMail()
' Set up DAO Objects.
Dim oDataBase As DAO.Database
Dim rst As DAO.Recordset
Set oDataBase = OpenDatabase("C:\Orders\Orders.mdb")
Set rst = oDataBase.OpenRecordset _
("Orders", dbOpenDynaset, dbSeeChanges)
I think this opens the connection to the db and the table/recordset I want to work with.
Could anyone please tell me what the code is to launch the NewOrder form?
I have tried the DoCmd.OpenForm method but regardless of syntax I keep getting the 424 Object Required error.
Help please...