Solved

Report does not load all records properly

Posted on 2011-09-22
3
295 Views
Last Modified: 2013-11-27
Great Day, I have a DB that keeps track of customer repair service at an auto mechanic shop. there is a form that displays all records of customers who have had service performed on their vehicles. There are seven records, and all of them have data. However, when the report is opened to print an invoice, three of the records are loaded as if they have no data.

I'd like to know why the records are not showing the data in Report mode. They do show data when the invoice is displayed in edit mode.

Open frmRepairOrder-Select4Report2
Select record 60, or 58, or 53
Click "Open Report" - these records do not load; however, if you ...
Click "Open Invoice" - you will see the record(s)

Thanks in advance for your help.

r/David
Independent-Auto---EE---9-22-201.zip
0
Comment
Question by:yddadsjd95
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 36580637
if you will open/view the record source of the report, query "qryCusVehInfo4Reports"

you will see that the JobId  53,58,60 is not included

examine your query why..
0
 

Author Comment

by:yddadsjd95
ID: 36582420
Thanks capricorn1, I looked at your observation; however, I see the remaining three records - 60, 58 and 53 - if I remove the CustomerID relationship between tblVehicles and tblMasterCustomers, which presents another problem. When I open the report with the following code in the click event...

Private Sub btnOpen_Report_Click()

    Dim stDocName As String
    Dim stFilter As String
    Dim stDateRange As String
   
    'set conditions
    stDocName = "rptInvoice2"
       'Open report
    DoCmd.OpenReport ReportName:="rptInvoice2", _
    View:=acViewPreview, _
    WhereCondition:=stLinkCriteria

   
End Sub


the filter does not work. This would appear to be the direction that I need to go, but the now I am running into the issue of the filter. When I attempt to open the report with Record #60, which should only be a 1 page report, I get an 8 page report with  a report from every record.

I'm not sure what to do from here.

r/David
Private Sub btnOpen_Report_Click()

    Dim stDocName As String
    Dim stFilter As String
    Dim stDateRange As String
    
    'set conditions
    stDocName = "rptInvoice2"
       'Open report
    DoCmd.OpenReport ReportName:="rptInvoice2", _
    View:=acViewPreview, _
    WhereCondition:=stLinkCriteria

    
End Sub

Open in new window

0
 

Author Closing Comment

by:yddadsjd95
ID: 36601410
Thank you capricorn1. I may have dug myself into a hole. Since asking the question, I have made a number of alterations to the db and fixed a number of issues. This issue has consequently gotten a we bit more complicated; consequently, I'm closing this question out and will rephrase it in a new question. Your help got me halfway there, but with all of the changes since then, it made sense for me to start over again. Thanks for your help.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS Access VBA Printing current Page as pdf 3 56
On Key Down Access 2010 6 41
trouble referencing field on sub form 8 37
SQL Select in Access 2003 3 26
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question