Results 1 to 11 of 11
  1. #1
    RLehrbass is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    102

    report says "No current Record" when in print preview


    Report says 'No Current Record' when viewing with print preview, even though it works fine in report view?
    What did I do?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Never encountered this before. Would have to review report design. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    ive seen this when there are zero records to print.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    ranman, if records show in ReportView then should also show in PrintPreview.
    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.

  5. #5
    RLehrbass is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    102
    i found a reference in a microsoft saying something about the report has a group on or group footer set, but I don't understand exactly what they are saying.
    https://support.microsoft.com/en-us/kb/888635

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    If you have not set any Sorting & Grouping parameters in the report design, then that cannot be cause.

    Again, if you want to provide db ...
    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.

  7. #7
    RLehrbass is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    102
    Moderator,
    I have tried so many things on the report last night. I appreciate you looking at it for me. Membership-database-constructionSecurityProtection8-26-15.zip
    rptInvoiceBalDue it will load with all records in report view but will not load in print view?

    Look around the db while you are in there so you can understand our previous interactions...

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Opening report from the menu does not trigger the popup error message but there is no data, just #Error in the textboxes.

    I commented out all the code in the report Load event and the report displays properly in PrintPreview. Need to put this code in a different event. If you want the edits to tblTranasactions to be reflected in this report, then do the edits before calling the report. Switching between report views causes the Load event to run again so you get more records saved. Probably need conditional code that searches the tables and only creates records if not already there.
    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.

  9. #9
    RLehrbass is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    102
    Moderator,
    OK. i resolved the error. The error was being introduced by the requery at the end of the VBA code. I resolved this by changing the event procedure from 'on load' to 'on open', now that part works great.

    Question: Everything is working correctly, but my report generates an invoice even when there is a zero balance. How can I tell the report that I only want to report when the [balance] is greater than zero.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Okay, what you call an Invoice, I would call a Statement or a Notice. An invoice to me shows products purchased and payments (like cash register receipt from grocery store).

    Try criteria under the Balance field in query: <>0

    Or apply criteria when opening report - VBA would be like:

    DoCmd.OpenReport "reportname", acViewPreview, , "Balance <> 0"
    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.

  11. #11
    RLehrbass is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    102
    The <>0 in criteria did the trick.
    Once again. Thank you for the assistance.
    You are appreciated!

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

Similar Threads

  1. Replies: 3
    Last Post: 05-14-2015, 02:13 AM
  2. Replies: 4
    Last Post: 02-18-2015, 11:28 AM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. "No Current Record" error...not sure why it is there
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 01-25-2011, 10:14 AM
  5. Replies: 0
    Last Post: 05-04-2010, 06:39 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