Ok, so the subject doesn't really make sense, but I didn't know how to sum it up very well. Here's what I want to do, and hopefully its possible.
I want to be able to pull a validation rule from the DB and store it in a variable. The reason for this is because the rules could change and we don't want to have to change the code all the time to accommodate. So basically, I want to have a string set to an expression and then use that string for an IF statement, like follows...
and basically what I want that to do is
Is this even possible?? and if so, how do I go about doing that??
Thanks - Todd
I want to be able to pull a validation rule from the DB and store it in a variable. The reason for this is because the rules could change and we don't want to have to change the code all the time to accommodate. So basically, I want to have a string set to an expression and then use that string for an IF statement, like follows...
Code:
sStringFromDB = "nCategoryID = ""1000"""
if sStringFromDB then
'Do Something
end if
and basically what I want that to do is
Code:
if nCategoryID = 1000 then
'Do Something
end if
Is this even possible?? and if so, how do I go about doing that??
Thanks - Todd