I have a simple concept. I want to use a varable as a case statement. Before I begin development, just looking to know if it is even possible.
Here's the situation...Access 2K....Set of business rules. The rules define which process path to take for each record depending on the last two digits of the identifier field. For example:
Select Case Right([IdField], 2)
Case "01", "02", "11", "12"
Do This
Case "15", "16", "25", "26"
Do That
End Select
The numbers assigned to each process may change...but the number of processes will not...There are only three paths. What i want to do is give the users two tables, one for each path, and allow them to update the numbers. The code will fill an array and be available for the Case statements.
Can this be done? If you have done something similar before, and want to share me some code, I'll gladly accept it...but I already have code for filling an array from a table and all the other code is up and running when I hard code the numbers....just want to make this dynamic so the users aren't calling me to change the rules all the time...
Thanks... Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Albert Einstein)
Robert L. Johnson III, MCP, Network+, A+
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
Here's the situation...Access 2K....Set of business rules. The rules define which process path to take for each record depending on the last two digits of the identifier field. For example:
Select Case Right([IdField], 2)
Case "01", "02", "11", "12"
Do This
Case "15", "16", "25", "26"
Do That
End Select
The numbers assigned to each process may change...but the number of processes will not...There are only three paths. What i want to do is give the users two tables, one for each path, and allow them to update the numbers. The code will fill an array and be available for the Case statements.
Can this be done? If you have done something similar before, and want to share me some code, I'll gladly accept it...but I already have code for filling an array from a table and all the other code is up and running when I hard code the numbers....just want to make this dynamic so the users aren't calling me to change the rules all the time...
Thanks... Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Albert Einstein)
Robert L. Johnson III, MCP, Network+, A+
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com