I posted this in another forum, but it did not seem like too many people were seeing it. So, here it is again. Hope someone can help me with this. Thanks in advance.
I have a problem where we need to add the sate name to a formula field. However, we do not want to hard code it because that would mean that we would have to go into each report and change it each time a new state comes on board.
What I was thinking is putting a table with a single field in it for the state name. Since each state has it own database, it would only have one row, which would be that state's name; like California.
The problem is that production data is on one db and tables that we (the programmers) create is on another. I would create this report and put some thing like this in Crystal's data source:
This works fine as long as rptstate and mytable are in the same database, because I can go into the Link Options for the link and change it to Not Equal[!=]. However, if they are in different databases, the link options become disabled. Also, I can not access the Database|Show SQL Query... window.
Any thoughts of how to get around this. Let me know if I did not supply enough info.
I have a problem where we need to add the sate name to a formula field. However, we do not want to hard code it because that would mean that we would have to go into each report and change it each time a new state comes on board.
What I was thinking is putting a table with a single field in it for the state name. Since each state has it own database, it would only have one row, which would be that state's name; like California.
The problem is that production data is on one db and tables that we (the programmers) create is on another. I would create this report and put some thing like this in Crystal's data source:
Code:
SELECT field1, field2, field3, statename FROM mytable, rptstate ON mytable.field1 <> rptstate.statename
This works fine as long as rptstate and mytable are in the same database, because I can go into the Link Options for the link and change it to Not Equal[!=]. However, if they are in different databases, the link options become disabled. Also, I can not access the Database|Show SQL Query... window.
Any thoughts of how to get around this. Let me know if I did not supply enough info.