Im trying to hard code a Year in as an available value for the user to pick out of a drop down box. This is what i have so far.
Label Value
Travel Year 2006
well i want to go ahead and put two value for that one label , like this:
Label Value
Travel Year 2006, 2007
How do i do this? I tried putting a comma, and i tried putting a semi colon, but it always just grabs the first number "2006".
I know it cant be this hard! please help! THanks!
Enter another Label/Value combination like this:
Label Value
TravelYear 2006
TravelYear 2007
or you could write a little query to do it.
-Mike
|||ok, this is actually not what im writing, i just tried to explain it in a simpler way, this is what i want
Label Value
Task National TN001, TN002, TN003, TN004, TN005, TN006, TN007
Task Vet TV001,TV002, TV003, TV004, TV005
Survey National SN001, SN002, SN003, SN004, SN005
and so on
Its a way of grouping the same type of tasks together in the parameter, so the user doesnt have to individually go through a long list of codes.
THere should be away to put one option with multiple values.
|||You could manually create a dataset like this:
Select 'Task National' as Label, 'TN001, TN002, TN003, TN004, TN005, TN006, TN007' as Value
union
Select 'Task Vet' as Label, 'TV001,TV002, TV003, TV004, TV005' as Value
union
Select 'Survey National' as Label, 'SN001, SN002, SN003, SN004, SN005' as Value
Then parse the values and use them.
|||I ended up just putting it in the where clause like this
Code Snippet
WHERE REGION_KEY=@.Region_Key
AND LEFT(Qry_Questions.[Question Code],2)IN (@.QuestionCode)
so it grouped the ones with the same 2 first letters. Works great!|||Nice job. Sometimes you have to be a little creative to get things to work right. :-)
No comments:
Post a Comment