Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Err assigning object a date value

Status
Not open for further replies.

jasonhuibers

Programmer
Sep 12, 2005
290
CA
We are trying to use scheduling a report via asp page. When we try to assign

Set NewParameter = crParamField.CreateSingleValue
NewParameter = date()

We ecnounter this error when trying to run the asp page:

CrystalEnterprise10.Report.1 error '80070057'

One or more arguments are invalid.

If we assgn the value an integer value it works ok... only issue is with date values.



 
Well, I don't any thing difinitive, but I can only guess that the parameter in the report itself is not of integer type, and you need to convert the result of Date() to integer or change the type of parameter in the report itself, I think you can convert the Date by using Format or CInt or something like that, but you may need to change or create a parameter of Date type. Hope this leads you in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top