Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Update current record in Access using Excel
Hi
Would someone be able to help me with the code to use to find a record in an access table so I can update data for that record using information in an excel spreadsheet. Thanks Noemi |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Update current record in Access using Excel
Hi, the following piece of code will help you to update the name in a for a
given ID. Const DSN As String = "ODBC;DATABASE=myDB;UID=;PWD=;DSN=DSN_TEST;" Dim ws As DAO.Workspace Dim con As DAO.Connection Set ws = DAO.CreateWorkspace("", "", "", dbUseODBC) Set con = ws.OpenConnection(DSN, dbDriverNoPrompt, False) query = "UPDATE Map_Project_Resource SET NAME='madhan' WHERE ID='E001';" con.Execute query con.Close ws.Close "Noemi" wrote: Hi Would someone be able to help me with the code to use to find a record in an access table so I can update data for that record using information in an excel spreadsheet. Thanks Noemi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I access the access data via Excel 2002 with auto update ? | Excel Programming | |||
Update A Record In Access. Not Adding But Editing | Excel Programming | |||
New record in table in Access from VBA in Excel | Excel Programming | |||
How can I update an MS Access table record from within Execl works | Excel Discussion (Misc queries) | |||
Modifying an Access record in Excel | Excel Programming |