When I see "repeating columns" ([SecurityModuleOne], [SecurityModuleTwo],
....) I immediately think of ... spreadsheets!
Before you try anything else, I urge you to spend the time to come up to
speed on the process of normalization. Access is a relational database, and
"expects" well-normalized relational data, not 'sheet data.
With the design you've posted, you have a maintenance nightmare. I'm
guessing that if you ever need to add just one more Security Module, you
need to modify your tables' structures, your queries, forms, reports, code,
macros ...?!
In a well-normalized design, adding (or removing, or editing) a security
module would require just one (new/deleted/altered) row.
If "normalization" and "relational database" aren't familiar terms, plan on
learning more about them if you want you (and Access) to work easier...
Good luck
Regards
Jeff Boyce
Microsoft Office/Access MVP
PremierConsultant said:
I appologize for dragging this out, but here is the table structure.
tblTemplate
TempID
TempName
SecurityModuleOne
SecurityModuleTwo
SecurityModuleThree
SecurityModuleFour
SecurityModuleFive
SecurityModuleSix
SecurityModuleSeven
SecurityModuleEight
SecurityModuleNine
SecurityModuleTen
SecurityModuleEleven
SecurityModuleTwelve
SecurityModuleThirteen
SecurityModuleFourteen
SecurityModuleFifteen
tblUser
UserID
UserName
SecurityModuleOne
SecurityModuleTwo
SecurityModuleThree
SecurityModuleFour
SecurityModuleFive
SecurityModuleSix
SecurityModuleSeven
SecurityModuleEight
SecurityModuleNine
SecurityModuleTen
SecurityModuleEleven
SecurityModuleTwelve
SecurityModuleThirteen
SecurityModuleFourteen
SecurityModuleFifteen
TemplateName
I created a query called qry SecurityTemplate1 against the tblUser. I
added
the fields for all the security modules. In the criteria for
tblUser.SecurityModuleONE, I set SecurityModuleOne equal to the value in
the
tblTemplate.SecurityModuleONE.
The query reads:
Select SecurityModuleOne,SecurityModuleTwo,SecurityModuleThree, etc...
FROM tblUser
WHERE SecurityModuleOne ="Allow Function One", SecurityModuleTwo =
"Allowed
Funciton Two", SecurityModuleThree = is Null, etc...