Update table record with Excel info

Timoo

Registered User.
Local time
Today, 10:25
Joined
May 9, 2012
Messages
30
Hi,

First of all I want to thank you all for being this forum.
It helps me a great deal in my first steps into VBA.

Right now I am looking for a way to update a record in a table with information, read from Excel, if the record already exists. If not, it is an append.

How could I do this?
Currently I use this:
Code:
        'Import or update the dealer file
        DoCmd.TransferSpreadsheet acImport, , _
        "DealerContacts", strPath & strFileList(intFile), True, "contact!A1:F2"
But I want to be able to recognise if the contact is already there, so I will only update the information. The contact number is stored in a variable, so if I would be able to query the contact list with the variable, I would have the record to update (or have none).

How do I do this and go from there?
Any help would be greatly appreciated, thanks
 

Users who are viewing this thread

Back
Top Bottom