+ Reply to Thread
Results 1 to 3 of 3

Access export to pdf based on check boxes

  1. #1
    Registered User
    Join Date
    09-16-2014
    Location
    Vermont
    MS-Off Ver
    2007
    Posts
    2

    Access export to pdf based on check boxes

    Hello,
    I'll try to explain this the best I can, I currently don't have any code for it. I've been looking all over the place trying to find some kind of hint of it. I know it can be done

    I have a database that pulls reports of technicians warehouse.
    I have a form [Division_PB] that has a subform named [Tech_Print_Selection subform]
    this subform displays 5 fields from the query [Tech_Print_Selection] the name of the table this is attached to is [Cycle_Count_Techs]
    the fields are as follows in the query/subform: Technician, Tech#, WHS, CurrentDiv and Selection.

    I have a macro called [Price_Book_Bin1_M] that runs the report.
    The name of the report being run is [Price_Book_Bin1_F]

    on the subform I have made it so I can drop down a box and sort based on the field CurrentDiv.
    what I want to be able to do is the following

    select a number of checkboxes and click a command button to export the selected warehouses to their own separte pdf files.
    so checkbox 5 items, produces 5 pdf files. after competed it must remove the check from the boxes
    I want the file saved with the name of 3 of the fields in the subform (CurrentDiv, Technician and WHS) in that order.



    Tables
    Cycle_Count_Techs

    Queries
    Tech_Print_Selection

    Forms
    Division_PB - SubForm = Tech_Print_Selection subform

    Report
    Price_Book_Bin1_F

    Macro
    Price_Book_Bin1_M



    I was looking at a for loop to do this, but haven't had any luck finding what i'm looking for...
    I think I've stated everything I need to produce this. hopefully you guys can help.


    Thanks!!

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Access export to pdf based on check boxes

    I would drop the checkbox method and use an easier one...

    make a table tPicked to hold the selected warehouses.
    in a form put 2 listboxes,
    lstAvail that shows all warehouses to pick from
    lstPicked that shows the tPicked table to hold what the user picks to report on.

    on lstAvail dbl-click, run an append query to add the list item to tPicked

    the your report, Price_Book_Bin1_F, will use a query that looks at the form lstPicked warehouse selected:
    select * from table where [warehouse]=forms!myForm!lstPicked

    cycle thru the picked list and export the reports
    Please Login or Register  to view this content.
    Attached Images Attached Images

  3. #3
    Registered User
    Join Date
    09-16-2014
    Location
    Vermont
    MS-Off Ver
    2007
    Posts
    2

    Re: Access export to pdf based on check boxes

    That's a cool idea ranman256, I'll try that out!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Export from Excel to Access but check 2 criteria to ensure no duplicates
    By DannyJ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-31-2016, 05:26 AM
  2. Check boxes that delete other check boxes and change the color of another cell.
    By nhamhamilton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2014, 02:40 PM
  3. [SOLVED] Coding Yes/No option buttons to not allow check boxes or require check boxes
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2014, 11:32 PM
  4. [SOLVED] Calculations based on check boxes
    By katieshields in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-02-2014, 04:11 AM
  5. Replies: 3
    Last Post: 06-27-2013, 07:43 PM
  6. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  7. Automatic setting of check boxes based on other check boxes?
    By ArchiveMike in forum Excel General
    Replies: 5
    Last Post: 07-31-2012, 09:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1