Currently, my report prompts the user to enter the Docket number to select records. What do I need to change so the user can click a button to preview a report based on the currently displayed record on the form? (skip the WHERE below)
Here's my query:
SELECT tblEstimates.Date, tblEstimates.Number, tblEstimates.Revision, tblEstimates.Docket, tblEstimates.Description, tblEstimates.Total, qryEstimates.SumOfTotal
FROM tblEstimates INNER JOIN qryEstimates ON tblEstimates.Docket = qryEstimates.Docket
WHERE (((tblEstimates.Docket)=[Enter Docket]));
Form button:
Report Preview On_Click
stDocName = "rptEstimates"
DoCmd.OpenReport stDocName, acPreview
I hope that is enough information. Thanks.
Here's my query:
SELECT tblEstimates.Date, tblEstimates.Number, tblEstimates.Revision, tblEstimates.Docket, tblEstimates.Description, tblEstimates.Total, qryEstimates.SumOfTotal
FROM tblEstimates INNER JOIN qryEstimates ON tblEstimates.Docket = qryEstimates.Docket
WHERE (((tblEstimates.Docket)=[Enter Docket]));
Form button:
Report Preview On_Click
stDocName = "rptEstimates"
DoCmd.OpenReport stDocName, acPreview
I hope that is enough information. Thanks.