Thanks that certainly works but am accessing an SQL table (Goldmine) to extract contact details into a Sales Forecasting appl in VBA. I want to extract the access to the Goldmine table and insert access to a contact folder in Outlook. The access to the Goldmine table is :
Private Sub CustomerName_AfterUpdate()
Dim cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set cnn = CurrentProject.Connection
rs.Open "select address1, address2, key4, contact, city from dbo_CONTACT1 where accountno='" & Me!Customername & "'", cnn, adOpenDynamic, adLockOptimistic
Me!Address1 = rs!Address1
Me!Address2 = rs!Address2
Me!SalesPerson = rs!key4
Me!Contact = rs!Contact
Me!City = rs!City
rs.Close
End Sub
I would like to know what code I need to access an Outlook 2003address book