Solved

Passing parameter from text field in vb6 to crystal report 8.5

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Formula to "conditionally count/sum" 3 58
VB6 ListBox Question 4 48
Crystal reports filter out records 2 36
Crystal reports vb.net 2 54
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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

856 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