Question : Report Requesting Parameter Value

On a form called "frmIncidents"... I am opening a report called "frmCurrentIncident", which has a control source called "qryCurrentIncident" (that has a main form and multiple subforms).... everytime I  that I go to open the report it asks for a parameter value from "tblIncidents" (which is the table used in the query)... it's not indicating a specific field it wants a value for so I just press "OK" and the report still opens fine.

Where could I have possibly set something by mistake where it's asking for a parameter from the table name?

It happens for both buttons that open the form (one to view and one to print).  

Private Sub btnPrint_Click()

On Error GoTo Err_Print_Click

    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

    Dim DocName As String

    DocName = "rptCurrentIncident"
    DoCmd.OpenReport DocName, A_NORMAL

Exit_Print_Click:
    Exit Sub

Err_Print_Click:
    MsgBox Error$
    Resume Exit_Print_Click

End Sub

Private Sub btnView_Click()

On Error GoTo Err_View_Click

    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

    Dim DocName As String

    DocName = "rptCurrentIncident"
    DoCmd.OpenReport DocName, A_PREVIEW

Exit_View_Click:
    Exit Sub

Err_View_Click:
    MsgBox Error$
    Resume Exit_View_Click

End Sub


And here is the query for the report:

SELECT tblIncidents.intIncidentID, tblIncidents.txtNatureOfIncident, tblIncidents.datIncidentDate, tblIncidents.datIncidentTime, tblIncidents.datReportedDate, tblIncidents.datReportedTime, [tblIncidents.datDateCreated, tblIncidents.booActive, tblIncidents.booReviewed, tblIncidents.booInvestigation, tblIncidents.booClosed, tblIncidents.booHPD, tblIncidents.intPrimaryInvestigator, tblEmployee.txtEmployee, tblIncidents.memIncidentSummary
FROM tblIncidents INNER JOIN tblEmployee ON tblIncidents.intPrimaryInvestigator = tblEmployee.intEmployeeID
WHERE (((tblIncidents.intIncidentID)=[Forms]![frmIncidents]![intIncidentId]));


I've looked around and because it's only wanting a parameter from the table itself not the specific field I'm not sure what I did.  This is the only report in my project that does this.  Other reports are opened from this form and don't have this issue so I'm thinking its the query, VBA or report.

I'm stumped!  

Answer : Report Requesting Parameter Value

I hope you have removed all SDK. The order is:
1. All SDK's.
2. eVC4.
3. ActiveSync.
When you uninstalled eVC, you need to remove Platform Manager, Platform Builder.
And you need to install in the opposite order - from ActiveSync. You need to have enough space on the hard disk. And, as a user, you need to have access to the specific registry keys.

Here is a link to download:
http://www.microsoft.com/downloads/details.aspx?familyid=4a4ed1f4-91d3-4dbe-986e-a812984318e5&displaylang=en
You will find all installation instructions there too.

Installation issues listed here:
http://examples.oreilly.com/9780735618848/cd_contents/eVC4/readme.htm
Random Solutions  
 
programming4us programming4us