I get an "Invalid Argument" error when trying to run a query from a report with a parameter in the query which prompts for a last name to run the query.
When I take the parameter out of the criteria line of the query the query runs fine and returns all records. This only happens when there are users in the database or accessing that same table which the query runs off of.
Does anyone know what this problem is and how to correct it??
This is the information I get when clicking Help....
Invalid argument. (Error 3001)
You tried to perform an operation that involves a routine in a DLL, and one of the arguments to the routine is invalid. Check your entry to make sure you have specified the correct arguments, and then try the operation again.
This error also occurs when you attempt to use mutually exclusive constants in an argument to a method, such as specifying both dbConsistent and dbInconsistent in the options argument to the OpenRecordset method.
When I take the parameter out of the criteria line of the query the query runs fine and returns all records. This only happens when there are users in the database or accessing that same table which the query runs off of.
Does anyone know what this problem is and how to correct it??
This is the information I get when clicking Help....
Invalid argument. (Error 3001)
You tried to perform an operation that involves a routine in a DLL, and one of the arguments to the routine is invalid. Check your entry to make sure you have specified the correct arguments, and then try the operation again.
This error also occurs when you attempt to use mutually exclusive constants in an argument to a method, such as specifying both dbConsistent and dbInconsistent in the options argument to the OpenRecordset method.