Results 1 to 6 of 6
  1. #1
    Kipster1203 is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    May 2010
    Posts
    54

    Exporting field to excel

    here is the code that I am trying but I'm getting compiling errors! Can someone help?



    Code:
        Dim xlApp As Excel.Application
        Dim xlWrkBk As Excel.Workbook
        Dim xlSht As Excel.Worksheet
        Dim myRec As DAO.Recordset
        Dim StartDate As DAO.Field
    
    
            Set xlWrkBk = GetObject("W:\edsplus\applications\0cmad\cmad_chart_spreadsheet.xls")
            Set xlSht = xlWrkBk.ErrorOverTime
    
            Set myRec = CurrentDb.OpenRecordset("Select Chart Form")
            Set StartDate = myRec.Fields("Start_Date")
    
            myRec.MoveFirst
    
            xlSht.Cells(1, "K") = StartDate
            xlWrkBk.Save
    
    
    .....

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Is the goal 'exporting field to excel' ? Is so, have you stepped thru the vanilla export method manually?

  3. #3
    Kipster1203 is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    May 2010
    Posts
    54
    I have no idea what that is

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    ah well - one must have an Access text book in the version one is working in. Available at Amazon or any big box book store. This topic is covered in all. File/Export.

    There is also an advanced feature called an Export Specification, it isn't intuitive and may not be needed - but refer to that term also as your explore this feature of Access.

  5. #5
    Kipster1203 is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    May 2010
    Posts
    54
    Everyon I ask has no idea what that method is, and neither does my access book, or google. Please enlighten me on this method

  6. #6
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    make your recordset - either a table or a query. highlight it...then go to File / Export and follow the wizard....

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Exporting to Excel
    By DreamOn in forum Import/Export Data
    Replies: 1
    Last Post: 05-23-2010, 10:27 PM
  2. Exporting to Excel Problem
    By octu in forum Import/Export Data
    Replies: 1
    Last Post: 04-14-2010, 11:28 PM
  3. Really Need Help With Exporting to Excel
    By graviz in forum Import/Export Data
    Replies: 0
    Last Post: 09-24-2009, 08:29 AM
  4. Exporting a Report to Excel
    By bullwinkle55423 in forum Reports
    Replies: 0
    Last Post: 12-11-2007, 10:27 AM
  5. Exporting a chart to Excel?
    By hraup in forum Access
    Replies: 0
    Last Post: 08-31-2006, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums