INLIST

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Ncholie
Posts: 1
Joined: Tue Oct 10, 2017 12:44 pm

INLIST

Post by Ncholie » Tue Dec 13, 2005 3:37 pm

[updated:LAST EDITED ON Dec-13-05 AT 04:00 PM (EST)]I need to use INLIST. But, I need to use a field as the list. I am using SQL server 2000 and Visual Basic. I am populating a field called C1 with this list - ^12 - THIS IS A TEST^ , ^2342 - TEST^ , ^4574 - TEST2^ , ^5685 - TEST4^ , ^5687 - TEST3^ , ^800 - THIS IS A TEST^ , ^AAAA - ANOTHER TEST^ , ^BBBB - OK ANOTHER TEST^. ____So my caculation looks like Inlist(Officecode, c1). This doesn^t seem to work. I have to use this because the string will change, depending on what the user chooses. To make is work, I have to put the actually list in, so the calculation looks like this - __Inlist(Officecode, ^12 - THIS IS A TEST^ , ^2342 - TEST^ , ^4574 - TEST2^ , ^5685 - TEST4^ , ^5687 - TEST3^ , ^800 - THIS IS A TEST^ , ^AAAA - ANOTHER TEST^ , ^BBBB - OK ANOTHER TEST^)______Whey can^t I use the field, C1?__I am using version 8.1.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: INLIST

Post by kfleming » Wed Dec 14, 2005 9:29 am

What about using the expression:__Officecode$c1____This expression will return a true value when the current value of Officecode is contained in the string c1.____Kathleen__R&R Support____

Post Reply