Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: 2 tables, 1 formula Post Reply Post New Topic
Author Message
delstar
Newbie
Newbie


Joined: 11 Jun 2009
Online Status: Offline
Posts: 26
Quote delstar Replybullet Topic: 2 tables, 1 formula
    Posted: 11 Jun 2009 at 2:28pm
OK, I have two tables I want to pull information from. The tables have very similar fields (the ones I want to pull from exist in both tables). Neither table actually relates to the other (no need for JOIN). I need to apply the same record selection formula to both tables. The current formula (to handle just one table) looks like :

{PLINCD.INORI#} = "FOOBAR" AND
(NumberVar input:= {PLINCD.INCALD};

Date ( Val ( ToText (input,0,"") [1 to 4]),
           Val (ToText (input,0,"") [5 to 6]),
           Val (ToText (input,0,"") [7 to 8])) = YearToDate OR
Date ( Val ( ToText (input,0,"") [1 to 4]),
           Val (ToText (input,0,"") [5 to 6]),
           Val (ToText (input,0,"") [7 to 8])) = LastYearYTD)

Any ideas as to how I would do this?
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.