Solved

Grid Control & Crystal Report

Posted on 1998-10-05
1
307 Views
Last Modified: 2013-12-26
Greetings of peace and happiness ...
Hi,
1st Question.
I didn't do programming for some time. I did one program using VB 4. Now, when i open in VB 5, the Grid Control automatically become Picture box control. Is there any ways so that i can directly convert to MS-Flex grid. Or can i maintain with Grid Control in VB5.

2nd Question.
  One field name in the table is called flag. Flag will have 0,1,2. But when i print in the crystal report, i want to replace with other text (e.g. in, out, return) instead of 0,1,2.
How can i do that?

Thank you.
Bye.
0
Comment
Question by:pandav
1 Comment
 
LVL 14

Accepted Solution

by:
waty earned 50 total points
ID: 1487360
1st
The reason is that the grid32.ocx is not installed and registered. Install it and register it, you will be able to load your project under VB5.
For the upgrade to MSFlexGrid, you could do, but you have to change the code in consequences.

2nd
Write a formula, (this is an example)

 if {flag} = 0 then
    "Flag 0"
 else
 if {flag} = 1 then
    "Flag 1"
 else
 if {flag} = 2 then
    "Flag 2";

I have not check the formula, but it is like that that I do in my projects
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

914 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

16 Experts available now in Live!

Get 1:1 Help Now