While I'm building my latest addition to my site, I would like to ask if this is possible:
Have a field in a user's table record, that will hold a string of ID's of objects from a different table, like this: "2,14,5,3" etc.
Will it work if I want to easily query the objects from the second table using this kind of SQL string?:
"SELECT * FROM tbl2 WHERE obj_id = " & rsUser("obj_string") & ";"
So with the rsUser("obj_string") it'll be something like:
"SELECT * FROM tbl2 WHERE obj_id = 2,14,5,3;"
Will it pull out appropriately all the objects that have 2, 14, 5 or 3 as their obj_id?
If not, then I guess I'll have to do it using an Array, but I'm always confused when it comes to arrays so if you can please explain how to do it.
Thank you.
EDIT: Ok I tested it and it doesn't seem to work (as I expected). Anyone mind explaining how to do it using arrays? Thanks.
Edited by FLATLINE