This is very helpful but I am guilty of failing to tell the whole story. I
need to be able to change these values (or rather I wish users to be able to,
if they have paid extra) and I have then supplied them with a 'code'; in
other words the database they originally bought is to beupgradeable. However
I do not wish each supplied version of the database to have to be uniquely
different as this would be too hard to implement.
Will try to learn about encryption and checksums to understand it more and
see whether I can develop what you suggest. Many thanks again.
"TC" wrote:
> There is a way to do it (without using Access security) if you make
> your database into an MDE, so that the users can not see or change your
> code.
>
> Say the value that you want to protect, is 999. Don't store 999.
> Instead, store:
>
> encrypt(999 & checksum(999))
>
> where checksum() returns a checksum of the specified value, and
> encrypt() encrypts the specified value in some reversible manner.
>
> Then, when your code needs to retrieve the controlled value:
>
> - get the value from the table;
> - decrypt it;
> - validate the checksum.
>
> By that means, the user can see something in the table, but the value
> does not make sense to him (because it has been encrypted), /and/, he
> can not change it (because the checksum will then be incorrect).
>
> Rough - but often effective. However, you do need to understand the
> basics of encryption, and checksumming, before you could do this.
>
> HTH,
> TC
>
>
|