You now need to step through this code and watch what is happening and make sure it is working. Turn on your access MDB otherwise this will not work.
Code:
Public WithEvents olInbox As Outlook.Items
Private Sub olInbox_ItemAdd(ByVal Item As Object)
On Error GoTo Err_olInbox_ItemAdd
Dim appAccess As Object 'late binding of the MSAccess object
Dim objDBase As Object 'late binding
If Item.Class = 43 Then
Set appAccess = GetObject(, "Access.Application")
'get a database
Set objDBase = appAccess.CurrentDb
'here I check the name of the current database - incase there is more than one open
If objDBase.Name = "Orders.mdb" Then
appAccess.Run "FromOutlook", Item
End If
Set appAccess = Nothing
Set objDBase = Nothing
End If
Exit_olInbox_ItemAdd:
Set olFolder = Nothing
Exit Sub
Err_olInbox_ItemAdd:
MsgBox Err.Description & " olSentItems_ItemAdd", vbCritical, "Error"
Resume Exit_olInbox_ItemAdd
End Sub
Private Sub Application_Quit()
Set olInbox = Nothing
End Sub
Private Sub Application_Startup()
Set olInbox = OlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
End Sub