Results 1 to 5 of 5
  1. #1
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368

    export current view of subform

    Hi all,

    So I have a subform that displays filtered data from a table. I'm trying to export the current view of the subform into excel. I assume transferspreadsheet will take care of it but I cant quite seem to get the syntax down to use the RecordSetClone as the source.



    Help?

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Actually, paste the function found here (on my website) to a standard module. Then you can just call it by passing the form as shown in the instructions in the header of the code:

    http://www.btabdevelopment.com/ts/de...aspx?PageId=47

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Thanks. It works. Do you know of a non-control way of doing this? When the record count gets high, it will take a few seconds to go through all the iterations. Transferspreadsheet wont take a recordset, will it?

    I was also considering making a temporary table with the recordset first, as then I know I can use transferspreadsheet.

    Thoughts?

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by TheShabz View Post
    Thanks. It works. Do you know of a non-control way of doing this? When the record count gets high, it will take a few seconds to go through all the iterations.
    What iterations? This copies the entire recordset completely in one shot. The only iteration is just the headers which need to be put in. So it should not take much at all. I've used this with 250,000 records with it taking just a second or two.

  5. #5
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Ahh yea, nvm. The For Loop there is only the headers. Nevermind.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-07-2011, 10:25 AM
  2. Show only current record in report from form/subform
    By stelioshania in forum Reports
    Replies: 0
    Last Post: 03-02-2011, 02:19 PM
  3. Replies: 1
    Last Post: 10-24-2010, 11:32 AM
  4. Replies: 1
    Last Post: 07-14-2010, 01:34 PM
  5. Query current view in form
    By smikkelsen in forum Forms
    Replies: 6
    Last Post: 05-02-2010, 08:06 AM

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