L
Lori Prewitt
I'm pretty new to access, so I'm using the Northwind db as a guide.
I have modeled my form/subform by the Orders/Orders Subform in the Northwind
db. A little history on the Northwind form, the orders form has a combo box
that you can pick products to order. You can pick one and then move to the
next row in the combo box and pick a second product for that order. It looks
like to the user a multi value field.
I have a subform that has one combo box field on it. I use this sql to
populate it
SELECT [Ministry Types].[MinistryID], [Ministry Types].[MinistryName] FROM
[Ministry Types] ORDER BY [Ministry Types].[MinistryName];
Table- Ministry Types looks like this
MinistryID - (autonumber)Primary Key
MinistryName- (text)
My form is, Contacts
ContactID autonumber
other sutff(address, phone, etc..)
Corosponding Table- Contact
ContactID (autonumber)Primary key
the other stuff
My third table is
Ministry Involvement
ContactID- Number Primary key
MinistryID- Number Primary key
MinistryName- (Text)
The list come up just fine but I get an error saying you cannot add or
change a record because a related record is required in the table 'Contacts'
I know I have missed something that the Northwind db is doing and I'm not
doing, I just don't know what it is. It feels like I have check my properties
and sql and anyother check box that I can find to see where the differences
my lie, but I can't find it. Can any one help with this error. Basicly I'm
creating a multi-value field on my contacts form. When I open my contacts
form the combo box list show up fine. I can even pick one value but when I go
to pick a second or save is throws me the error.
Please help,
Thanks
Lori
I have modeled my form/subform by the Orders/Orders Subform in the Northwind
db. A little history on the Northwind form, the orders form has a combo box
that you can pick products to order. You can pick one and then move to the
next row in the combo box and pick a second product for that order. It looks
like to the user a multi value field.
I have a subform that has one combo box field on it. I use this sql to
populate it
SELECT [Ministry Types].[MinistryID], [Ministry Types].[MinistryName] FROM
[Ministry Types] ORDER BY [Ministry Types].[MinistryName];
Table- Ministry Types looks like this
MinistryID - (autonumber)Primary Key
MinistryName- (text)
My form is, Contacts
ContactID autonumber
other sutff(address, phone, etc..)
Corosponding Table- Contact
ContactID (autonumber)Primary key
the other stuff
My third table is
Ministry Involvement
ContactID- Number Primary key
MinistryID- Number Primary key
MinistryName- (Text)
The list come up just fine but I get an error saying you cannot add or
change a record because a related record is required in the table 'Contacts'
I know I have missed something that the Northwind db is doing and I'm not
doing, I just don't know what it is. It feels like I have check my properties
and sql and anyother check box that I can find to see where the differences
my lie, but I can't find it. Can any one help with this error. Basicly I'm
creating a multi-value field on my contacts form. When I open my contacts
form the combo box list show up fine. I can even pick one value but when I go
to pick a second or save is throws me the error.
Please help,
Thanks
Lori