Hello
Im trying to bring up report with one of field criteria comming from form.I have following code.But whenever I run the code input box opens up asking for parameter.Please let me know what Im doing wrong.
Thanks
Dim stDocName As String
Dim stLinkCriteria As String
Dim strarea As String
stDocName = "RptDefault"
cboarea.SetFocus
strarea = cboarea.Text
DoCmd.OpenReport stDocName, acPreview, , "Item_Source = " & strarea & ""
Im trying to bring up report with one of field criteria comming from form.I have following code.But whenever I run the code input box opens up asking for parameter.Please let me know what Im doing wrong.
Thanks
Dim stDocName As String
Dim stLinkCriteria As String
Dim strarea As String
stDocName = "RptDefault"
cboarea.SetFocus
strarea = cboarea.Text
DoCmd.OpenReport stDocName, acPreview, , "Item_Source = " & strarea & ""