Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Excel application that gets data from an Access database.
What I wish to do is run some code from Excel to automate the updating of the Access database. Within thew Access database I have an append query set up. How can I run this query from Excel? Many thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using ADO:
Dim cn As ADODB.Connection Set cn = New ADODB.Connection With cn .Provider = "Microsoft.Jet.OLEDB.4.0;" .ConnectionString = "Data Source=DBFileName" .Open With .Command .CommandText = "qryName" .CommandType = adCmdUnknown .Execute End With .Close End With Nigel RS wrote: I have an Excel application that gets data from an Access database. What I wish to do is run some code from Excel to automate the updating of the Access database. Within thew Access database I have an append query set up. How can I run this query from Excel? Many thanks in advance. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200708/1 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many thanks
"Trevor via OfficeKB.com" wrote: Using ADO: Dim cn As ADODB.Connection Set cn = New ADODB.Connection With cn .Provider = "Microsoft.Jet.OLEDB.4.0;" .ConnectionString = "Data Source=DBFileName" .Open With .Command .CommandText = "qryName" .CommandType = adCmdUnknown .Execute End With .Close End With Nigel RS wrote: I have an Excel application that gets data from an Access database. What I wish to do is run some code from Excel to automate the updating of the Access database. Within thew Access database I have an append query set up. How can I run this query from Excel? Many thanks in advance. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200708/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Access query from Excel, input value to query being value in c | Excel Programming | |||
Running Access Query from Spreadsheet | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) | |||
Getting Access Error Messages when running Access through Excel | Excel Programming | |||
Running an Access Query From Excel | Excel Programming |