Solved

Report does not load all records properly

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

Accepted Solution

by:
Rey Obrero 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now