Solved

Passing parameter from text field in vb6 to crystal report 8.5

Posted on 2009-05-10
1
1,399 Views
Last Modified: 2012-05-06
Dear Experts,
I have a report generated to create invoices. I need to take in parameters from text fields in vb6 to that report. I encountered a problem when I try to pass the value in a text field containing the prices for the items. I set up the fields in crystal to be currency but whenever i pass the value of my text field in my vb6, it will come up with strange values. (eg, when the value of my text box is 100,000, crystal will only show 100,00). I tried passing my textbox value using
val(textbox.text) in vb6 but if i use this, crystal won't accept it. Any ideas experts?

thank you...
btw, im using CR8.5
0
Comment
Question by:Slythie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
nirojexpert earned 125 total points
ID: 24351378
canyou try to send without any formatting for the number. can you also try declaring the variable as single/double and then pass the varaible.
also verify that the datatype supports the precision level. maybe you defined the database field as number(4) and you are trying to pass a value that is number(5).
 
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question