crystal reports XI - how to filter the contents of a dynamic combo box in a parameter field

hi

i have 2 fields in seperate tables

one is employee surnames - f_employ.sname

the other is their category - f_cat.value

i set up a parameter field ?name, which is dynamically populated from f_employ.sname, no problem, and i can then base a select record formula on that, get the drop down box, select my name(s) and away we go - so far, so good

the difficulty arises because f_employ.sname contains about 200 values and i am only actually interested in those where the equivalent f_cat.value = 1.0

i can't find a way to limit the drop down box to only those f_employ.sname values that have a corresponding f_cat.value of 1.00 (the 2 tables are linked with an inner join BTW)

does that make sense as a question ?

anyone able to help ??

ta !
babysnakeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
mlmccCommented:
You could use a COMMAND for the drop down.

SELECT f_employ.sname
FROM  f_employ inneR JOIN f_cat on f_employ.LinkField = f_cat.LinkField
WHere f_cat.value = 1.0

mlmcc
0
 
babysnakeAuthor Commented:
sounds promising :)

the drop down box is automatically created when i use
f_employ.sname={?name} as a record select formula so that when i refresh the report i then pick from the drop down

where do i enter your command code ?
0
 
babysnakeAuthor Commented:
i've moved on a bit now in that i can derive the exact list of names i need from f_employ.sname formulaically :)

what i now need then is to use that formula to populate a parameter drop down such that it can be used to allow end-users as record selection criteria
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
mlmccCommented:
Is this a Crystal parameter box or an application?

mlmcc
0
 
babysnakeAuthor Commented:
it's a crystal parameter box

i'm linked to a SQL DB using CR XI and the tables/fields all relate to that one DB

i can't access the DB any other way, and i don't have Server or Enterprise !
0
 
mlmccCommented:
The command code is entered in the database expert.

mlmcc
0
 
babysnakeAuthor Commented:
OK

will have a 'play' over the weekend and get back

thanks
0
 
babysnakeAuthor Commented:
couldn't make it work as you suggested mlmcc but i did come up with a workaround

i have seperate report that generates the list i need which i export to excel

then i link that XLS to my main report and base the dynamic parameter on those values

not 100% automatic, but it means updating the list is fairly quick when i have to do it

thanks anyway for your time

0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.