×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error when creating parameter fields

Error when creating parameter fields

Error when creating parameter fields

(OP)
I havea foxpro form and I need to insert From date and To date into my crystal report. So that I created two variables like this.

CODE

_FromDate=thisform.txtFrom.Value
_ToDate= thisform.txtTo.Value 

After that I inserted parameter fields into my code as below,

CODE

.ParameterFields(0)  ="xFromDate;"+ _FromDate+";true"
.ParameterFields(1)  ="xToDate;"+ _ToDate+";true" 

When I am run my form it says Operator/operand type mismatch. Why is that?
How can I insert my variables inside my code as parameter field?
Thank you.

RE: Error when creating parameter fields

A Parameter field in crystal reports should look like this: {?FromDate}

Are you creating the parameter in crystal or in foxpro?

Macola Software Veteran and SAP Business One Consultant on Training Wheels

Check out our Macola tools:

www.gainfocus.biz/exceladdin.html

RE: Error when creating parameter fields

(OP)
I'm creating the parameter in foxpro and I need to pass this to my crystal report.

RE: Error when creating parameter fields

I have no idea how to do what you are asking. You can create parameters in SQL, but crystal never recognizes them (to my knowledge). Why not create the parameter in Crystal? I believe this is what you MUST do.

If you are writing code such as VB.net rather a stand alone crystal report, you are in the wrong forum. Try posting in the crystal reports integrate forum. They may have a better answer.

Macola Software Veteran and SAP Business One Consultant on Training Wheels

Check out our Macola tools:

www.gainfocus.biz/exceladdin.html

RE: Error when creating parameter fields

I am not sure how to handle Crystal Reports parameters in code. I have seen it before (working with a programmer). But it has been years ago since I worked with them. It should be documented somewhere.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close