Solved

Report does not load all records properly

Posted on 2011-09-22
3
287 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

810 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