Question : How to Prevent tampering with table data?

PROBLEM
How to prevent users from changing AND OR deleting data I put in an MS Access 2007/2010 table?

DESCRIPTION
I have an MS Access application that has a table names tblHazards. The table will be pre-populated with hazards for tyhe users to use. The users can add hazards of their own or change and edit their own hazards to this table. However, I do not want to permit users to DELETE or CHANGE the hazards that are in the table that I have put their.

Answer : How to Prevent tampering with table data?

No, it has to be not a dll but exe. You can't associate file extension with a dll.

> How would you advise to handle this?

This new exe takes command-line parameter

/open filename
 or
/edit filename

and calls the secondary exe, one of those two that you already have.

Or, instead of calling secondary, exe you might transfer your code for each exe into this new exe as subroutine, then there's only one exe.

Or, you change each of the two existing projects from exe to dll, and your new exe calls those dll's.

So, in each case there's new exe that takes parameter /edit or /open, and then calls either separate exe, or dll, or its own internal subroutine.



Random Solutions  
 
programming4us programming4us