which is the error when you run the script?
- objReport.mParametersAddNew "Cat Key", RES.PstrCat
Try with the white space as this is how you named your parameter in the report definition, didn´t you?
Also try to use casting like the following examples:
objRP.mParametersClear objRP.mParametersAddNew "Period", CDate(dtePeriod) objRP.mParametersAddNew "Loc", CLng(lngLocation) objRP.mParametersAddNew "CatKey", CLng(lngCatKey) objRP.mParametersAddNew "TargAcct", CStr(strAutoMapAcct)
Thank you very much for your help, users are happy and have reported that they had an incorrect parameter passed, and this caused type mismatch.
Please don't forget to mark reply as correct.