Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 field from dataset

Author  Topic 

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2013-07-26 : 08:27:07
I Need to grab one value out of a dataset and put it into a textbox. Basically it is a list of comments by a certain personID. I only need the comment from a certain commentTypeID. Possible??

data...

User ID commentTypeID comment
1 13 blaaaa blaaaaa1
1 14 blaaaaa baaa 2

I need the comment from userID 1 commentTypeID 14



Dave
Helixpoint Web Development
http://www.helixpoint.com

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2013-07-26 : 09:24:12
Figured it out
=Lookup(14, Fields!commenttypeid.Value, Fields!comment.Value, "DataSet2")

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-26 : 11:18:41
why not use a join and bring it from db itself instead of doing it at reporting end.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -