ProgEvalJAA
MIS
I have an Access 2007 database with four tables, and I’m struggling with some of the subforms linked to those tables.
Below I've tried to outline my structure.
The first table is my main table and contains a primary key field of id number for each record. For example, id number # 12345 serves as the primary key field for a particular record for a particular customer such as John Doe.
The second through fourth tables are linked to the id number and are similar to the following:
Providing Company
Attending Company
Volunteers
I have a main form called Worksheet. It is linked to the main table and has a dropdown box forcing the user to select a particular customer id number such as # 12345.
The main form has three subforms (one for each of the other three tables: Providing Company, Attending Company, Volunteers) linked on id number by the master/child field settings.
My question is this:
I have purposely placed a record in the main table with an id number of 0. When the main form (with accompanying subforms) first displays, it comes up with that record and shows the id number of 0. However, it allows my users to save data on the subforms under that id number. I would like the subforms to be hidden and not allow any data entry for that id number of zero. All the other id numbers should display and allow data entry. What is the easiest and most efficient way to accomplish this desired outcome?
Below I've tried to outline my structure.
The first table is my main table and contains a primary key field of id number for each record. For example, id number # 12345 serves as the primary key field for a particular record for a particular customer such as John Doe.
The second through fourth tables are linked to the id number and are similar to the following:
Providing Company
Attending Company
Volunteers
I have a main form called Worksheet. It is linked to the main table and has a dropdown box forcing the user to select a particular customer id number such as # 12345.
The main form has three subforms (one for each of the other three tables: Providing Company, Attending Company, Volunteers) linked on id number by the master/child field settings.
My question is this:
I have purposely placed a record in the main table with an id number of 0. When the main form (with accompanying subforms) first displays, it comes up with that record and shows the id number of 0. However, it allows my users to save data on the subforms under that id number. I would like the subforms to be hidden and not allow any data entry for that id number of zero. All the other id numbers should display and allow data entry. What is the easiest and most efficient way to accomplish this desired outcome?