Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Report Commands Post Reply Post New Topic
Author Message
achartrand
Newbie
Newbie
Avatar

Joined: 27 Apr 2010
Location: Canada
Online Status: Offline
Posts: 8
Quote achartrand Replybullet Topic: Report Commands
    Posted: 30 Apr 2010 at 5:04am
I have a view that returns a repID (RequestedByRep), what I want to do is create a command that will run and return the rep's Name from the reps table.
 
 
SELECT {tblReps.RepName}
FROM tblReps
WHERE {tblReps.RepNumber} = {tvwr_PurchaseOrder.RequestedByRep}
 
When I run this it says: Error - Description syntax error. What am I doing wrong?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 30 Apr 2010 at 7:31am
you need to access the view in your from statement...CR sees the where clause but doesn't know what tvwr... is.
 
HTH
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.030 seconds.