I have a basic list of phone numbers that I check for functioning properly,
and when I check them, I check a box in my table and create a report. There
are two things that I am trying to accomplish but can't figure out. (I'm a
basic user.)
1) When I check off that the phone was checked, I want another field in the
table to automatically post the date.
2) Once I get that set, I want to archive the dates that the phones were
checked on.
The simplest possible way of doing this would be greatly appreciated.
I would suggest two tables: a table of Phones and a table of Checks, since
each phone would be checked multiple times, and you want to record when.
The Phones table would probably have a Text field for the phone number as its
primary key. Some would recommend an autonumber, either way will work. You
might want additional fields to identify or describe the phone (where it is,
whose it is, etc.) if appropriate.
A second table would record each instance of checking the phone. It should
have an Autonumber field as its primary key, and a field to link to the phones
table - either a text field of the same size to hold the phone number, or a
Long Integer if you use an Autonumber. The table should have a DateTime field
(named WhenChecked say) with a Default Value property of Now() if you want the
computer to record when you enter a record as the time checked; leave it
without a default if you'll be checking the phone at one time and entering the
data later, in which case you'll have to type it in manually. Add any
additional fields having to do with checking the phone (a text or Memo field
to record any notes or comments, for example).
You'ld use a Form based on the Phones table with a Subform based on Checks,
using the master/child link fields to connect the phone to the checks for that
phone.
You'ld be able to create a Report by using a Query joining the two tables,
most likely with a criterion on the WhenChecked field to display all of the
checks that occurred in a desired time span.