Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Unlinkable tables??? Post Reply Post New Topic
Author Message
pellis
Newbie
Newbie


Joined: 09 Mar 2008
Online Status: Offline
Posts: 14
Quote pellis Replybullet Topic: Unlinkable tables???
    Posted: 19 Mar 2008 at 3:42pm
I need help with this.  I can't seem to figure out a simple way to accomplish what I want.  I am using Crystal Reports XI.  I have a table on a database that contains the value of a zipcode.  The field is memo so it does not show up on the database expert as a field that you can link to another table.  I have a zipcode table on a different database that has a field for the zip and the state that matches that zip code.  Ideally I would like to link the zipcode field from the zipcode table to the value field in the other table.  Looks like this:
 
|---------------------|                 |---------------------------|   
|Profile_values    |                 |   zipcode_Number     |
|---------------------|                 |---------------------------|
|   fid                    |                |     zipcode                 |
|   uid                   |                |     State                    |
-----------------------                  ---------------------------
 
Value is a data field from Profile_Values but it does not show up on the database expert when I link the tables.  If it did I could link value to zipcode.   Can anyone offer me a way around so that I can get the state (zipcode_number.zipcode) that matches the value of zip in the Profiles_values.value field?  Any help is deeply appreciated.  Thanks.
IP IP Logged
andymc
Newbie
Newbie
Avatar

Joined: 17 Mar 2008
Location: United States
Online Status: Offline
Posts: 18
Quote andymc Replybullet Posted: 20 Mar 2008 at 10:34am

pellis,

Create a formula:
//@zip - "uid" is the memo field with zipcode?
trim({Profile_values.uid})
 
Then create a subreport that uses the Zipcode_Number table and put State on the detail and supress all other sections.  On the subreports Link tab link the subreport from the @zip formula on main report to the zipcode field on the subreport.
 
 
 
 
Andymc
IP IP Logged
pellis
Newbie
Newbie


Joined: 09 Mar 2008
Online Status: Offline
Posts: 14
Quote pellis Replybullet Posted: 21 Mar 2008 at 10:06am
Thanks so much.  I can't wait to give this a try.  I will let you know how it turns out.   Thanks again.
 
pellis
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.016 seconds.