Query cannot contain a Database parameter. (Error 3222)

Change the parameter field data type for this parameter query to a valid field data type, and then try the operation again.