Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Variable in name of the table/field. Post Reply Post New Topic
Author Message
bulluk
Newbie
Newbie


Joined: 07 Aug 2007
Online Status: Offline
Posts: 4
Quote bulluk Replybullet Topic: Variable in name of the table/field.
    Posted: 09 Jul 2008 at 5:26am
Hi,
 
I have to make report in which I can't specify constantly the name of the table, cause it depends on variable.
Example:
In one case I have to use fields from table SC0109.x and in another from SC0110.x or SC0111.x or SC0112.x etcSo is it possible to put as a (part of) number/name of the table any variable?
 
(If it helps, in my case, there will change the last two digits of the name of table. They will depend on the date: if it is 31.03 or before, it will be the last two digits of the year, if is after 31.03, it will be the last two digits of the year +1. Example: if date is 31.03.2008, I need 08, so the table is SC0108.x, if it is 01.04.2008, I need 09, so the table is SC0109.x etc.)  
 
The same rule apply to name of fields? (ex: SC0108.x and SC0108.y)
 
Thank you very much in advance for any help with my problems... :)  
 
 
PS. I use CR Designer 10, Crystal Syntax. 
 
PS2. I have tried one thing:
stringVar x:="SC01" & "08";
{x.123} // to show field SC0108.123
but of course it doesn't work. The error of formula is: "{x.123} This field name is not known"


Edited by bulluk - 09 Jul 2008 at 5:28am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.