Forum

Notifications
Clear all

Data Validation

8 Posts
2 Users
0 Reactions
74 Views
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

I have a table used for data input.  The possible values look up the values from other tables (Group, User, Permission).  The Group table and Name table are dynamic and created at the time.  The permission table is static

I need to be able to check that the data entry table when finished includes all the possible groups at least once, all the names at least once and each group has all the possible permissions at least once or a user that has the permission ALL.

see attached.

What would be the best approach for this and how?

 
Posted : 20/01/2019 4:10 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Alison,

There isn't a workbook attached.

Mynda

 
Posted : 23/01/2019 3:48 am
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

oops!  here it is

 
Posted : 23/01/2019 2:11 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Alison,

This isn't really a data validation issue.

I'd use Power query to create the 'desired table' and then compare that to the finished table. e.g. for Group/User combinations, check that all users are present in a group in the FinalTable using a Left Anti merge, where the Users table is first and the Final Table is second. See example attached - UsersWithoutGroups.

You can use a similar technique for the groups that don't have all permissions covered. This is a little more complicated, but I'll leave that for you to work out. It will be a good challenge for you.

Mynda

 
Posted : 25/01/2019 2:19 am
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

Thanks.  As this is a user form Is there a way of putting a button on the sheet to refresh this the results table of the power query?

 
Posted : 25/01/2019 4:01 am
(@mynda)
Posts: 4761
Member Admin
 

I imagine so. You'd have to write some VBA code to refresh the query via a button.

 
Posted : 25/01/2019 6:09 am
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

Could you give me an idea how that would look please.   I can write VBA in Access.   Excel appears to be different ….

 
Posted : 25/01/2019 7:24 pm
(@mynda)
Posts: 4761
Member Admin
 

No, sorry. I don't cover VBA.

 
Posted : 25/01/2019 9:20 pm
Share: