B
Bob Bower
Please, if you can help...
I have WIN XP Pro, Access 2002, and the subject MDB is in Access 2000
format. My knowledge and skill level with Access is mixed. I can create
forms, tables, queries and reports, but I know nothing about code. I let
Access decide. Since 2001 I committed the sin of using Access as a flat file
database. In December I normalized with the three tables below for the 2004
records. Now I’m as lost as an Easter Egg!
I have been trying to solve this problem since Feb 3 when I posted to the
group with (Records Do Not Show In "Committed" Form) as the subject. Until
then things were doing just fine with the database. I would add a new
prospective customer record in the “Master Contact” form and assign
“Prospect” as the category. When the prospective customer places an order, I
change the category to “04 Committed To Space”. I then open the “Committed
Exhibitors” form and enter the sales information required.
Things are slightly improved, but I am stuck. When I enter a new record now,
and assign the “04 Committed To Space” category it appears in the “Committed
Exhibitors” form as expected. When I enter data in any field relating to
Tbl#2 or Tbl#3, Access assigns an ID number for that table, and populates
the fields with the default values but will not save the data. (Although now
the PK numbers are different than the ContactID PK number because every time
I attempt to input data related to exhibit space or payment the counter goes
up). Yet, the form will accept a record that was entered prior to Feb 3 and
save it with newly entered data relating to Tbl#2 or Tbl#3.
I must have done something to mess up either the table relationships, or
joins in the queries, or both. I don’t know.
The database is structured as follows.
There are 3 tables.
Tbl#1 is contact information. PK ContactID, auto number.
Tbl#2 is exhibit space information. PK ExhibitID, auto number.
Tbl#3 is payment information. PK PaymentID, auto number.
Each table reflects unique information. All the information in each table
applies only to the subject of each table.
Relationships? There is only one customer to an exhibit order. There is only
one payment record per exhibit order. It seems to me that I would do fine
with one to one relationships. I do not have the Referential Integrity box
checked. It will allow me to do it between Tbl#1 and Tbl#2, but not between
Tbl#2 and Tbl#3.
Both forms are run from different queries. The queries use all three tables.
The SQL for the “Master Contact” form:
FROM [2004 Exhibitor Contact Data] LEFT JOIN ([2004 Exhibit Space Data] LEFT
JOIN [2004 Exhibitor Payment Data] ON [2004 Exhibit Space Data].ExhibitID =
[2004 Exhibitor Payment Data].PaymentID) ON [2004 Exhibitor Contact
Data].ContactID = [2004 Exhibit Space Data].ExhibitID
ORDER BY [2004 Exhibitor Contact Data].Company;
The SQL on the “Committed Exhibitors” form:
FROM [2004 Exhibitor Contact Data] LEFT JOIN ([2004 Exhibit Space Data] LEFT
JOIN [2004 Exhibitor Payment Data] ON [2004 Exhibit Space Data].ExhibitID =
[2004 Exhibitor Payment Data].PaymentID) ON [2004 Exhibitor Contact
Data].ContactID = [2004 Exhibit Space Data].ExhibitID
WHERE ((([2004 Exhibitor Contact Data].[04 Categroy])="04 Committed To
Space"));
Where do I go from here? What should I look for?
Thanks in advance,
Bob Bower
I have WIN XP Pro, Access 2002, and the subject MDB is in Access 2000
format. My knowledge and skill level with Access is mixed. I can create
forms, tables, queries and reports, but I know nothing about code. I let
Access decide. Since 2001 I committed the sin of using Access as a flat file
database. In December I normalized with the three tables below for the 2004
records. Now I’m as lost as an Easter Egg!
I have been trying to solve this problem since Feb 3 when I posted to the
group with (Records Do Not Show In "Committed" Form) as the subject. Until
then things were doing just fine with the database. I would add a new
prospective customer record in the “Master Contact” form and assign
“Prospect” as the category. When the prospective customer places an order, I
change the category to “04 Committed To Space”. I then open the “Committed
Exhibitors” form and enter the sales information required.
Things are slightly improved, but I am stuck. When I enter a new record now,
and assign the “04 Committed To Space” category it appears in the “Committed
Exhibitors” form as expected. When I enter data in any field relating to
Tbl#2 or Tbl#3, Access assigns an ID number for that table, and populates
the fields with the default values but will not save the data. (Although now
the PK numbers are different than the ContactID PK number because every time
I attempt to input data related to exhibit space or payment the counter goes
up). Yet, the form will accept a record that was entered prior to Feb 3 and
save it with newly entered data relating to Tbl#2 or Tbl#3.
I must have done something to mess up either the table relationships, or
joins in the queries, or both. I don’t know.
The database is structured as follows.
There are 3 tables.
Tbl#1 is contact information. PK ContactID, auto number.
Tbl#2 is exhibit space information. PK ExhibitID, auto number.
Tbl#3 is payment information. PK PaymentID, auto number.
Each table reflects unique information. All the information in each table
applies only to the subject of each table.
Relationships? There is only one customer to an exhibit order. There is only
one payment record per exhibit order. It seems to me that I would do fine
with one to one relationships. I do not have the Referential Integrity box
checked. It will allow me to do it between Tbl#1 and Tbl#2, but not between
Tbl#2 and Tbl#3.
Both forms are run from different queries. The queries use all three tables.
The SQL for the “Master Contact” form:
FROM [2004 Exhibitor Contact Data] LEFT JOIN ([2004 Exhibit Space Data] LEFT
JOIN [2004 Exhibitor Payment Data] ON [2004 Exhibit Space Data].ExhibitID =
[2004 Exhibitor Payment Data].PaymentID) ON [2004 Exhibitor Contact
Data].ContactID = [2004 Exhibit Space Data].ExhibitID
ORDER BY [2004 Exhibitor Contact Data].Company;
The SQL on the “Committed Exhibitors” form:
FROM [2004 Exhibitor Contact Data] LEFT JOIN ([2004 Exhibit Space Data] LEFT
JOIN [2004 Exhibitor Payment Data] ON [2004 Exhibit Space Data].ExhibitID =
[2004 Exhibitor Payment Data].PaymentID) ON [2004 Exhibitor Contact
Data].ContactID = [2004 Exhibit Space Data].ExhibitID
WHERE ((([2004 Exhibitor Contact Data].[04 Categroy])="04 Committed To
Space"));
Where do I go from here? What should I look for?
Thanks in advance,
Bob Bower