Using excel as front end access to Microsoft Access

caprichoo

Board Regular
Joined
Nov 2, 2005
Messages
53
Hi,

I am trying to create an input template using Excel that will link to database and also will retrieve data from the database.

Anyone can help?
At least show me how to get thing started? thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hello

I'm not usre if this will help but this is what i used to run a query from access using excel.

You need to make sure your reference library has the access library checked or this wont work.

Dim objAccess As Access.Application

Set objAccess = CreateObject("Access.Application")

objAccess.OpenCurrentDatabase filepath:= _
"H:\Steve's file\Tasks To Do\Pivot Table\backup old style calculation\db1.mdb"

objAccess.DoCmd.TransferSpreadsheet _
TransferType:=acExport, _
SpreadsheetType:=acSpreadsheetTypeExcel8, _
TableName:="Data", _
Filename:="H:\Steve's file\Tasks To Do\Pivot Table\Pivot Place\Query" & Format(Date, "ddmmyy") & ".xls", _
HasFieldNames:=True, _
range:="Sheet1"

objAccess.Quit
Set objAccess = Nothing


hope this helps
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top