[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Report does not load all records properly

Posted on 2011-09-22
3
Medium Priority
?
319 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 2000 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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

650 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