I
Ian Baker
I am trying to create an algorithm in Access 2003 vba from variables of x
and y that will result in a 12 digit number without any recurring pattern
when the value of x increases.
x can be between 38517 and 45822
y can be between 1252 and 6100
so to encode x and y:
if y=2450 and x=38517 then z will equal for example 123456789876
if y=2450 and x=38838 then z will equal for example 98765432123
if y=2450 and x=39122 then z will equal for example 552288664479
etc
Then I need to be able to decode the z value to ascertain what the x and y
values were.
for example:
if z=123456789876 then y=2450 and x=38517
if z=98765432123then y=2450 and x=38838
if z=552288664479then y=2450 and x=39122
etc
If anyone can help I would greatly appreciate it as I have spent days on
this using functions like XOR etc and just when I thought I was getting
close I couldn't either decode to ascertain what the x and y values were or
when encoding a pattern always emerged.
Thanks in advance
and y that will result in a 12 digit number without any recurring pattern
when the value of x increases.
x can be between 38517 and 45822
y can be between 1252 and 6100
so to encode x and y:
if y=2450 and x=38517 then z will equal for example 123456789876
if y=2450 and x=38838 then z will equal for example 98765432123
if y=2450 and x=39122 then z will equal for example 552288664479
etc
Then I need to be able to decode the z value to ascertain what the x and y
values were.
for example:
if z=123456789876 then y=2450 and x=38517
if z=98765432123then y=2450 and x=38838
if z=552288664479then y=2450 and x=39122
etc
If anyone can help I would greatly appreciate it as I have spent days on
this using functions like XOR etc and just when I thought I was getting
close I couldn't either decode to ascertain what the x and y values were or
when encoding a pattern always emerged.
Thanks in advance