Link to home
Start Free TrialLog in
Avatar of wnchan
wnchan

asked on

How to change the table name of crystal report in run time?

Hi,

   I would like to create crystal report to show some fields of a table. But the table name is changed while field names remain unchanged when the report is created by VB5 each time. How can I do that in run time?

Richard
2/14
Avatar of alokanant
alokanant

u can create a temporary table and copy data from different tables into it. then u can use this temp table in crystal report.

hth
alok
Avatar of wnchan

ASKER

The method is possible. But If two users create the same report at the same time, the data will be copied to the same temporary table at the same time. How to solve this problem?
i think this can be resolved by making the temporary table accessible to only one user at a time. Possibly when one user has pressed option for generating a report based on the temporary table, u can set a flag on. as soon as the user completes using the temporary table set the option off. whenever a user wants to create a report u can first check the flag and give appropriate message.

hth
alok.
ASKER CERTIFIED SOLUTION
Avatar of macu
macu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial