cvandijk
MIS
- Oct 9, 2002
- 19
Good morning all,
I am coming to the community with a question in regards to my report which is based off a query. Let me post what my query looks like and what I have for the launch code on the form:
Query:
SELECT tblProbateInfo.IndexNo, tblProbateInfo.DateBondFiled, tblAttorney.FirstName, tblAttorney.MiddleInitial, tblAttorney.LastName, tblAttorney.Suffix, tblAttorney.Address1, tblAttorney.Address2, tblAttorney.City, tblAttorney.PhoneNumber, tblProbateInfo.DateOfDeath, tblProbateInfo.EstateYear, tblProbateInfo.Estate, tblProbateInfo.EstateFirstName, tblProbateInfo.EstateMiddleInit, tblProbateInfo.EstateLastName, tblProbateInfo.EstateSuffix, tblProbateInfo.AdvertisingFee, tblProbateInfo.EstateFee
FROM tblProbateInfo INNER JOIN (tblAttorney INNER JOIN tblAttorneyCase ON tblAttorney.AttorneyID=tblAttorneyCase.AttorneyID) ON tblProbateInfo.IndexNo=tblAttorneyCase.IndexNo;
Code in a button on the form:
Private Sub cmdCardView_Click()
Dim strWhere As String
Dim strReportName As String
strReportName = "rptCardView"
strWhere = "[IndexNo]= " & Forms!frmProbate!IndexNo
DoCmd.OpenReport strReportName, acViewReport, , strWhere
End Sub
Certain estates do not have any attorney related to them and when I run the card view button for those estates, the report is entirely blank. However, should I choose card view for an estate that does in fact have an attorney, the card fills in all of the proper information. How do I get this report to fill in all the fields that have data regardless of whether certain fields are populated or not?
I am probably overlooking something very simple. I have tried searching the site for what I think my problem was but it wasn't helping at all.
Any help on this issue would be greatly appreciated.
I am coming to the community with a question in regards to my report which is based off a query. Let me post what my query looks like and what I have for the launch code on the form:
Query:
SELECT tblProbateInfo.IndexNo, tblProbateInfo.DateBondFiled, tblAttorney.FirstName, tblAttorney.MiddleInitial, tblAttorney.LastName, tblAttorney.Suffix, tblAttorney.Address1, tblAttorney.Address2, tblAttorney.City, tblAttorney.PhoneNumber, tblProbateInfo.DateOfDeath, tblProbateInfo.EstateYear, tblProbateInfo.Estate, tblProbateInfo.EstateFirstName, tblProbateInfo.EstateMiddleInit, tblProbateInfo.EstateLastName, tblProbateInfo.EstateSuffix, tblProbateInfo.AdvertisingFee, tblProbateInfo.EstateFee
FROM tblProbateInfo INNER JOIN (tblAttorney INNER JOIN tblAttorneyCase ON tblAttorney.AttorneyID=tblAttorneyCase.AttorneyID) ON tblProbateInfo.IndexNo=tblAttorneyCase.IndexNo;
Code in a button on the form:
Private Sub cmdCardView_Click()
Dim strWhere As String
Dim strReportName As String
strReportName = "rptCardView"
strWhere = "[IndexNo]= " & Forms!frmProbate!IndexNo
DoCmd.OpenReport strReportName, acViewReport, , strWhere
End Sub
Certain estates do not have any attorney related to them and when I run the card view button for those estates, the report is entirely blank. However, should I choose card view for an estate that does in fact have an attorney, the card fills in all of the proper information. How do I get this report to fill in all the fields that have data regardless of whether certain fields are populated or not?
I am probably overlooking something very simple. I have tried searching the site for what I think my problem was but it wasn't helping at all.
Any help on this issue would be greatly appreciated.