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

    Report not pulling correct record


    I just started using the "Desktop Time and Billing" template in Access. I've entered in some data, but when I go to run the invoice... it only pulls up the 1st record. How do I create it to run a specific record?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    At the bottom of the form are there buttons to navigate forward and backwards through the Recordset? Maybe there is a field you can enter search criteria in, also.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Can't replicate the issue. I created two expense records for same project. Both show in the invoice report.

    I think this db is designed for a single invoice per customer per project. I added another project for same customer. The invoice pulls data for only the latest project as billables. Although it does show expenses for the other project in a grand total.
    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.

  4. #4
    jlo33jenn is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2015
    Posts
    5
    I was playing around with it more this weekend. I need to have it so when I am on a specific record in form view (let's say the 4th out of 10 created), that when I click a command button, it prints that specific form in a report for me.

    I'm thinking there must be something missing in my macro to make this happen. This is what I have so far when I look in the Macro Design:

    ACTION: ARGUMENTS:
    OpenReport Invoice, Print Preview, , , Normal
    RunCommand Print

    Any assistance would be appreciated as I don't know much about macros.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Need filter criteria passed to the report - WHERE CONDITION.

    I don't use macros. In VBA would be like:

    DoCmd.OpenReport "Invoice", , , "ID=" & Me.tbxID

    However, somehow the invoice report currently opens to specific customer and shows only the latest project for that customer. I haven't figured out how, yet.

    NOTE: I deleted the duplicate thread on this same topic.
    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
    jlo33jenn is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2015
    Posts
    5
    Thanks. Still learning the basics of both macros and VBA. Do you have a website or youtube video you could recommend to give me a quick tutorial on VBA's?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    https://www.accessforums.net/program...ram-53058.html

    https://support.office.com/en-us/art...0-DAB7C75CBE0C

    In the event property select [Event Procedure] then click the ellipsis (...) to open VBA editor, type code in the procedure. That's one way to open the VBA editor and initiate establish procedure at same time.

    There is macro equivalent to the VBA I suggested.
    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.

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

Similar Threads

  1. Replies: 5
    Last Post: 06-11-2015, 06:45 PM
  2. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  3. Pulling only one record into a report
    By jessicamosby in forum Access
    Replies: 9
    Last Post: 07-17-2014, 08:08 AM
  4. Replies: 2
    Last Post: 08-03-2012, 01:22 PM
  5. cannot pull the correct record
    By simba in forum Reports
    Replies: 1
    Last Post: 11-30-2010, 10:45 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