Hi everyone,
I need to know how to relate a field in an access 2007 table to multiple records in a field in another table using the example below.
I need to relate tables so that when i select week 1 for calibrating pt-3 it automatically can relate tables and create a subdatasheet to tell me either 1/1/2011 or 1/2/2011 in table 3 it was calibrated.
The example is:
Lets say i have 20 instruments in a table (table 1) and i have to calibrate them during the year.
Table 1
Instrument description
pt-1 pressure transmitter 1
pt-2 pressure transmitter 2
pt-3 pressure transmitter 3
tt-4 temperature transmitter 4
tt-5 temperature transmitter 5
lt-6 level transmitter 6
lt-7 level transmitter 7
ft-8 flow transmitter 8
ft-9 flow transmitter 9
etc
Because access 2007 has a limit of 255 for the number of fields it can create i cannot create 365 field each named every day of the year.
So what i did i made a table with 52 fields ie 52 weeks in a year (week1, week 2,etc as in table 2 below)
Table 2
Week1 Week2 Week3 Week4 etc
Yes No Yes No
No No Yes Yes
etc
and another table (table 3) with 2 fields (1 for week of the year and the other for day of the year) eg
Table 3
Week of the Year Day of the Year
1 1/1/2011
1 1/2/2011
2 1/3/2011
2 1/4/2011
2 1/5/2011
2 1/6/2011
2 1/7/2011
2 1/8/2011
2 1/9/2011
3 1/10/2011
3 1/11/2011
etc