Solved

Passing parameter from text field in vb6 to crystal report 8.5

Posted on 2009-05-10
1
1,329 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now