Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2006

Tip: Looking for answers? Try searching our database.

print ADO recordset in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BillyRogers - 26 Sep 2006 17:10 GMT
Instead of Debug.Print rst.fields(0)
how can i open a new Excel workbook and print the field in the first cell?

Signature

Billy Rogers

Dallas,TX

Currently Using Office 2000  and Office 2003

pietlinden@hotmail.com - 26 Sep 2006 17:45 GMT
> Instead of Debug.Print rst.fields(0)
> how can i open a new Excel workbook and print the field in the first cell?
[quoted text clipped - 5 lines]
>
> Currently Using Office 2000  and Office 2003

this will do it.
http://www.mvps.org/access/modules/mdl0035.htm
Barry Gilbert - 26 Sep 2006 17:59 GMT
Try this:

   Dim xlApp As New Excel.Application
   xlApp.Workbooks.Add
   xlApp.Workbooks(1).Worksheets(1).Range("A1") = rstFields(0)
   xlApp.Visible = True

Barry

> Instead of Debug.Print rst.fields(0)
> how can i open a new Excel workbook and print the field in the first cell?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.