Edit an Access Database from Excel using DAO - TechRepublic
General discussion
August 12, 2006 at 12:53 AM
ninedemo

Edit an Access Database from Excel using DAO

by ninedemo . Updated 19 years, 11 months ago

Can anyone help me edit the following code so that I can use an excel row to edit an access database. The code is to be put in a Macro and used via command button on excel worksheet.
Dim dbMyDB As Database
Set dbMyDB = OpenDatabase(“C:\Pro.mdb”)
Dim rsMyRS As Recordset
Set rsMyRS = dbMyDB.OpenRecordset(“Customers”, dbOpenDynaset)

rsMyRS.Edit
rsMyRS!Name = Range(10, 1)’ here is the prob
rsMyRS.Update

This discussion is locked

All Comments