Solved

Report does not load all records properly

Posted on 2011-09-22
3
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Datamismatch when doing a VBA Event in Access 6 41
IIF syntax in MS Access 1 63
Database maintenance 36 108
Microsoft Access 2016 Bug? 9 46
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

733 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