Forum Moderators: open
(first post here :) )
I need to make a dynamic variable, but I cant seem to make it work.
I loop trough a list of users yada yada yada - long story short, I need to make a variable based upon their ID (or something else unique - ID preferable), so I can check later on in the loop, if that ID has already been shown on the list, or not.
I was thinking...
SELECT * FROM .......
do while not rs.eofresponse.write "user: " ....
'now we need to save info that this user already HAS been shown, so that it won't be shown later down the list - was thinking something like this:
ID_& rs("ID") = "shown"
rs.movenext
loop
Then I want to simply add the following in the above "do while not rs.eof" :
If ID_&rs("ID")<>"shown" then
' then we show the user
end if
I know that ID_&rs("ID") is the wrong way to create the variable (hence it doesn't work) - so how do I do?
Thanks.