This is an example of my current permissions table.
Username LName FName MI Password Roles ChangePassword Locked UnitsAllowed
108 Schneider William M. 108 Budget No No 6120,6121
I've got the validation and login working correctly. My question is what would be the best way to setup my table above to store Units Allowed? This is what I am hoping to dynamically create. Do I use a loop to go through the comma separated values? I am open to changing my table structure if there is an easier way.
SELECT YAASREP.ASALCD AS UNIT, YAASREP.ASAQNA AS UNITDESC
FROM YAASREP
WHERE (((YAASREP.ASALCD)="6120")) OR (((YAASREP.ASALCD)="6121"))
ORDER BY YAASREP.ASALCD
Thank you!!
Username LName FName MI Password Roles ChangePassword Locked UnitsAllowed
108 Schneider William M. 108 Budget No No 6120,6121
I've got the validation and login working correctly. My question is what would be the best way to setup my table above to store Units Allowed? This is what I am hoping to dynamically create. Do I use a loop to go through the comma separated values? I am open to changing my table structure if there is an easier way.
SELECT YAASREP.ASALCD AS UNIT, YAASREP.ASAQNA AS UNITDESC
FROM YAASREP
WHERE (((YAASREP.ASALCD)="6120")) OR (((YAASREP.ASALCD)="6121"))
ORDER BY YAASREP.ASALCD
Thank you!!