On my work desktop, I have
-Microsoft Office Professional Plus 2013 Access
I've been tasked to create a MS Access application with an Access DB.
I have an MS Access Report within my application
The MS Access Report's Record Source is associated with a MS Access Query Definition
, and furthermore, said MS Access Query Definition takes an argument which I've named as idArg ( of type Double ).
However, within the MS Access Report, I also have a ListBox which is associated with Another MS Access Query Definition which takes a different argument which I've named as idArg2 ( of type Double ).
The aforementioned MS Access Report will be ultimately used to generate a pdf version of itself.
I generate the pdf programmatically from a Form's VB code:
DoCmd.SetParameter "idArg", CInt(Me.IdLabel.Caption)
DoCmd.SetParameter "idArg2", CInt(Me.IdV2.Caption)
DoCmd.OpenReport "OrgFinancialInstReport", acViewPreview
DoCmd.OutputTo acOutputReport, "OrgFinancialInstReport", acFormatPDF, GetConstructedPdfFileName(CInt(Me.IdLabel.Caption), Me.InvestorName.Caption), True
DoCmd.Close acReport, "OrgFinancialInstReport"
However, the code shown above Only successfully applies the CInt(Me.IdLabel.Caption) to "idArg" correctly but fails to apply the CInt(Me.IdV2.Caption) to "idArg2"
therefore, when the above code is run, I see the popup box that requests a value for "idArg2"
What steps do I have to take in order to implement said MS Access Report so that I can assign the CInt(Me.IdV2.Caption) to "idArg2" properly?