Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
this is an excel/access question. i was wondering how to make excel run a querry in access and put the result of the querry into a spreadsheet. thanx a lot |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() -----Original Message----- Hi, this is an excel/access question. i was wondering how to make excel run a querry in access and put the result of the querry into a spreadsheet. thanx a lot . Turn DAO reference on: Sub Ret_Acc_Qry Dim dbs as database dim sql as string dim rst as recordset fname = "filename of database" Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet) Set dbs = wrkJet.OpenDatabase(fname, True) sql = "sql statement" set rst = dbs.openrecordset(sql) h=0 for each fld in rst.fields activesheet.[a1].offset(0,h).value = fld.name next fld activesheet.range("a2").copyfromrecordset rst dbs.close end sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mr. Erlandsen's site has examples of using ADO or DAO
http://www.erlandsendata.no/english/...php?t=envbadac you can use Data=Get External Data possibly. -- Regards, Tom Ogilvy "delali" wrote in message ... Hi, this is an excel/access question. i was wondering how to make excel run a querry in access and put the result of the querry into a spreadsheet. thanx a lot |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() -----Original Message----- Hi, this is an excel/access question. i was wondering how to make excel run a querry in access and put the result of the querry into a spreadsheet. thanx a lot . Sorry before next fld in my response you need h=h+1 nath |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple sheet querries | Excel Worksheet Functions | |||
Stumped on establishing web querries on MS Excel | Excel Discussion (Misc queries) |