Thank you very much for your response Mr. Browne. I read your stuff often
and am a frequent visitor to your website. I am new to Access, but I am
somewhat familiar with database normalization. I emphasize the somewhat.
Maybe you can give me a little further direction. I made a post a few days
ago concerning a table that has several fields in it. Group, Description,
ScheduleType, and MOD0 through MOD195. I didn't not design this database,
although I have been given it to look at it and possibly convert it from
Paradox to Access. I am new but love the challenge.
The table in question is used as a lookup to know which Work Group is off on
a particular day (RDO). The MOD0 - MOD196 fields are all logical fields.
True fields representing Off Days (RDO's). There are only 7 rows in the
table, as there are only 7 RDO groups. The work schedule is a rotating
schedule. One week you would have a Monday/Tuesday off. The next week you
would have Tuesday/Wednesday off, and so on. I can only assume there are
196 MOD fields because there are 7 RDO groups multiplied by 2 groups off
each day, totaling 14 X 14 for a total of 196. One complete cycle.
Example: Row 1 represents RDO Group1. Following the rotating schedule for
Group1, each MOD field which is TRUE represents an RDO.
(MOD0,MOD1,MOD8,MOD9,MOD16,MOD17, and so on until MOD195.).
The text box on the main form contains the date (Date()+1. It's a projected
date which is used to generate reports so the supervisor knows who to call
in for overtime on that day, based on the RDO group that is off that day.
Not needing to know which group is off, the date is converted to a
LngInteger, i.e. 02/21/2008 = 39499. Then using the MOD 196 Function the
remainder is 103. Using the table above I know that group 1/2 are both off
on that day. If the date is 02/22/2008, then I know group 2/3 is off on
that day. There are no tables hard coded with dates and they don't have to
figure out which group is off.
I know which group is off on MOD102 because in the table Group1, field
MOD102 is TRUE, but how can I use that information without having to view
the table to know.
I sure appreciate your time. Thanks in advance.