Results 1 to 10 of 10
  1. #1
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13

    Export main form and sub form together to excel sheet

    Hi guys,

    I'm new here. I've been searching since last month which is related to my question but unluckily no one can answer my question until I bumped into this forum and register immediately.

    I hope someone can help me, please.. I'm not really familiar with MS Access but my boss asked me to export the main form (header) and sub form (details of header). This is my sample access:

    Header:
    No.: 123-0910 *Find button* Remarks: None
    Desc.: Colored Accopas Status : OK
    Rev.: 02

    Details
    Size Location Quantity
    8mm R1 9
    9mm R5 65
    8cm Y7 87

    I added find button because I have 500 No. so i can find "No." easily, and export to excel one by one.
    I want also to export those form exactly with the same format in MS Access (in form format)



    thank you so much.

    If you know thread the same with mine, kindly reply with the link. Thank you again!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    If you want to export data into Excel so users can manipulate it, better export query. Even report/subreport can be a messy export. Can't imagine a form/subform export will be satisfactory.
    Last edited by June7; 07-26-2018 at 12:04 AM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    John_G is offline VIP
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I want also to export those form exactly with the same format in MS Access (in form format)

    You can't export a form/subform to Excel and include the labels and layout. All you can do is export the data the form and subform are using.

    More importantly, you cannot export the form/subform and have them look the same and have the same functionality in Excel as they do in Access.

  4. #4
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    Thank you all the replies! I get it, there's no way to export exactly the format of access to excel. another question, even I use Macro or vba?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Well, yes code can export data, just won't have appearance of form or report.

    Did you experiment with export of form or report to understand why doesn't work well?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    I've tried, but the result is just exported the fields were distributed per column, and format is not the same with what I wanted. If I can't do that, I have plan B with my access. I hope you can still help me. So here it goes,. Instead of exporting, I want to print out the form (main form(header) and sub form(details of header) with footer (signatories only in 2nd page)). header should be fixed in 1st page while footer will show only in 2nd page but everytime I print it out, the 2nd page of details is not printing. It supposed to have a 2nd page because of course some data have more than 100 records. What would be the problem of my access? your help will be highly appreciated..thank you

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Forms are intended for screen display and reports for printing. Using one to do the other function will not produce wholly satisfactory results. I have printed only a very simple form for single record and even that was tricky because forms don't have page setup settings available to reports.

    Recommend you build a report for printing.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    thanks for that @June7, I do understand now the difference between the two. But I have question, let's say I create a report for printing, how can I easily find the particular record of what I want to make a print out. Can I create a search or button from my report? so if I want to print one record only, it won't be hard to find a record..Sorry if i'm poor in explanation but if you can't understand what I'm saying, i can elaborate more. But thank you for your replies and help

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    jamz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    13
    Ok thank you for the link @june7, I will check and update you..

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

Similar Threads

  1. export access queries to excel sheet
    By akapag22 in forum Import/Export Data
    Replies: 1
    Last Post: 06-30-2015, 12:49 AM
  2. Replies: 6
    Last Post: 01-29-2015, 08:53 PM
  3. Cant Export data to specific excel sheet by ADODB
    By rangga_osh in forum Import/Export Data
    Replies: 4
    Last Post: 03-14-2013, 04:20 AM
  4. Export Query to specific excel sheet
    By Perceptus in forum Queries
    Replies: 2
    Last Post: 12-20-2012, 11:50 AM
  5. Export Filtered ListBox output to a Excel Sheet
    By gokul1242 in forum Programming
    Replies: 4
    Last Post: 10-11-2012, 02:19 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