VB6 and Crystal Reports
This has been nagging me for some time. I wish someone out there can help me get this solved.
I use Crystal Reports 9.0 with my VB6 programs. In some applications I developed, the need for selective printing comes out. For example, the printing of statements of account. My current approach is to group the customer accounts by account number. Crystal Report then creates the statements of account for all customers. Selecting the customer statement to print is done using the printing dialogue box.
What I would like to do is to create a listview control containing the customer account number and name. From this listview control, I will select the specific customer account. The selected customer account is then used by Crystal Reports in the record selection formula to display the customer's statement of account and set it up for printing. It works, but only for the first customer selected from the listview control. The next customer account selected will trigger an out of memory error.
What's the cause and how do I get around this problem to get the intended result from the program?
Thanks a lot, I really will appreciate very much your tips, if need be, please include the code to solve it.