Not able to resolve a run-time error using MS Access 2003. Upon clicking on a command button on a MS Access form, I receive a run-time error.
Upon accessing the code, the line beginning with DoCmd.OpenReport... is highlighted.
Any idea on the source/resolution of the problem?
Private Sub Command42_Click()
'Original Line immediately below
' DoCmd.OpenReport "Project Summary", acViewPreview, , "[ProjectID] = " & [ProjectID] '"[ProjectID] = " & [ProjectID]
DoCmd.OpenReport "Project Summary", acViewPreview, , "CurrentProjectID = " & [ProjectID] '" 'Modified Line"
' CurrentProjectID = [ProjectID] 'DoCmd.OpenReport "Project Summary", acViewPreview 'Doesn't work
End Sub
Upon accessing the code, the line beginning with DoCmd.OpenReport... is highlighted.
Any idea on the source/resolution of the problem?
Private Sub Command42_Click()
'Original Line immediately below
' DoCmd.OpenReport "Project Summary", acViewPreview, , "[ProjectID] = " & [ProjectID] '"[ProjectID] = " & [ProjectID]
DoCmd.OpenReport "Project Summary", acViewPreview, , "CurrentProjectID = " & [ProjectID] '" 'Modified Line"
' CurrentProjectID = [ProjectID] 'DoCmd.OpenReport "Project Summary", acViewPreview 'Doesn't work
End Sub