Results 1 to 3 of 3
  1. #1
    jlo33jenn is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2015
    Posts
    5

    Macro - not pulling current record

    I currently have this macro set up on a form:



    Action: OpenReport
    Arguments: Invoice, Print Preview, , =[Forms]![Project Details]![ID], Normal
    What it is currently doing is pulling the last record on the form into a report. However, I could be on the 3rd or 4th record of 10 and it still does this. What I am hoping this macro would do is open up whatever current record I am on into the report, or provide me with a pop-up box to enter in the ID/record number I am wanting to have printed.

    Thanks for your help!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Open the form ,check the ID on the form
    now open the query (that the report uses)
    Is it pulling the current record?

    I dont see how it cant. If the report uses this query, that uses that ID, then it can ONLY pull that record.

  3. #3
    jlo33jenn is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2015
    Posts
    5
    Thanks. I think I can see why it isn't working now. Looks like something is wrong with my query. I'll work on that and see if that fixes things.

    Thanks for giving me a fresh look on it! I think I was staring at it way too long and that's why I kept missing what was not working.

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

Similar Threads

  1. Pulling only one record into a report
    By jessicamosby in forum Access
    Replies: 9
    Last Post: 07-17-2014, 08:08 AM
  2. Replies: 3
    Last Post: 05-12-2012, 10:54 AM
  3. Pulling up record ID instead of combo box value
    By edzigns in forum Programming
    Replies: 1
    Last Post: 04-29-2011, 08:03 AM
  4. Replies: 3
    Last Post: 12-21-2010, 11:52 AM
  5. Pulling Record Info From Sub Form
    By redlich23 in forum Forms
    Replies: 1
    Last Post: 09-02-2009, 02:10 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