You are on page 1of 1

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 aut omatically can relate tables and create a subdatasheet to tell me either 1/1/201 1 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 pt-1 pt-2 pt-3 tt-4 tt-5 lt-6 lt-7 ft-8 ft-9 etc description pressure transmitter 1 pressure transmitter 2 pressure transmitter 3 temperature transmitter 4 temperature transmitter 5 level transmitter 6 level transmitter 7 flow transmitter 8 flow transmitter 9

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 1 1 2 2 2 2 2 2 2 3 3 Day of the Year 1/1/2011 1/2/2011 1/3/2011 1/4/2011 1/5/2011 1/6/2011 1/7/2011 1/8/2011 1/9/2011 1/10/2011 1/11/2011

You might also like