Results 1 to 3 of 3
  1. #1
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    55

    Macro to copy and paste

    Hi Guys
    I have a problem and am looking for the best way to solve it .In my database I have a form with a drop down box where you select the part number you want the report on. The report is generated and is shown as data plus a graph. I want to put a button on the report that will generate a different type of report if I need to look into a different area of that data like finance.
    I don't want to have to use the drop down box again to select the part number is there a way to copy the part number from the report and auto fill the drop down box which will generate the second report?
    I hop that makes sence .


    Thanks for any help

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I don't use macros, but in vba you would (or could) pass the part number to the new report via the openargs parameter for docmd.openform and the new report would have code to check if there is a value in openargs and if so populate the dropdown box

    Alternative might be to populate the dropdown in the new report by referring to the dropdown control in the original report - e.g.

    =reports!originalreportname.dropdowncontrolname

  3. #3
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    55
    Yeah I think Ill try the second approach as Im not yet at the point where I can confidently write code.
    Thank you for your help

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

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2015, 02:11 PM
  2. Replies: 1
    Last Post: 01-21-2015, 11:33 PM
  3. Copy and Paste Row (vb)
    By Computer202 in forum Programming
    Replies: 7
    Last Post: 03-28-2014, 01:59 AM
  4. Copy-Paste
    By BorisGomel in forum Access
    Replies: 4
    Last Post: 10-25-2011, 07:17 AM
  5. Replies: 2
    Last Post: 06-06-2011, 04:18 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