Hi
I am trying to filter a report based on a form through VB code. The following is the code that I assume will work and obviously it is not. Could someone please point out the errors in the code. Thx
stDocName = "Audit Committee copy"
stDocName1 = "Aud com rep selection"
strWhere = "Reports!stDocName!StatusBox = Forms!stDocName1!Staus_box"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
I am trying to filter a report based on a form through VB code. The following is the code that I assume will work and obviously it is not. Could someone please point out the errors in the code. Thx
stDocName = "Audit Committee copy"
stDocName1 = "Aud com rep selection"
strWhere = "Reports!stDocName!StatusBox = Forms!stDocName1!Staus_box"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere