Results 1 to 2 of 2

Thread: HELP ME!! Crystal Viewer & VB Problem!

  1. #1

    Thread Starter
    Registered User
    Join Date
    Mar 2002
    Location
    Nashville, TN
    Posts
    103

    Exclamation HELP ME!! Crystal Viewer & VB Problem!

    I have an application that I use to pass parameters to a report via the Crystal Report Viewer control (I use the CRAXDRT.dll). The reports view fine except when a user specifies one particular parameter. This parameter is a currency parameter. The user will type a valid currency value in the text box. I then use the CCUR function to covert the text into a currency. However, when I pass that value to the report, I get a type mismatch (?!?!). I can't seem to get around this. I've tried declaring a currency variable and setting it to the CCUR(txtBalance.text) and then passing the variable to the report but that doesn't work either. Any thoughts?!?!?!?

  2. #2
    Addicted Member
    Join Date
    Jan 2001
    Location
    MPLS
    Posts
    187
    Convert the value to a Double before passing the parameter and you should no longer get the type mismatch. So try CDbl instead of CCur when adding the crystal declared currency parameter value.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width