Hi all, I am experiencing this problem and I know that the answer is probably simple but I've searched for an answer and I can't find it.
I have a toy database consisting of two tables.
1). A Table of Manufacturers and Product Lines (Primary Table)
2). A table of Images of individual products and corresponding product lines.
The fields are broken down as follows:
tblManufacturers (Primary Table)
Field Names
dteDate (Date/Time)
strToyLine_ID (Autonumber - Primary Key)
strToyLine (Text)
strManufacturer (Text)
strLearn_More (Memo)
strBuy_Them (Memo)
tblImages (Secondary Table)
Field Names
dteDate (Date/Time)
strImageID (Text - Primary Key)
strImageName (Text)
strBasedOn (Text)
strManufacturer (Text)
strToyLine (Text)
strToyLine_ID (Number Indexed = Yes (Duplicates OK))
strSeriesNumber (Number)
dtmYearReleased (Number)
curRetailPrice (Currency)
strPicture (Text)
memComments (Memo)
I have a one to many relationship between the two tables on the strToyLine_ID Field.
I just recently added the strToyLine_ID column to both tables and established a one to many relationship on this field between the two tables for ease.
Since I already had around 1000 records in the tblImages table and 154 records in the tblManufacturers table I performed an update query to have the strToyLine_ID field in tblManufacturers copied over to the strToyLine_ID field in the tblImages table. Everything worked fine.
I have two forms created. One form that enters data into the tblManufacturers table and another form that enters data into the tblImages table. When entering data I always enter data first using the form for the tblManufacturers table.
The problem I'm having is now, when I enter new data in the form for entry in the tblImages table, I keep getting: You cannot add or change a record because a related record is required in table 'tblManufacturers'.
Is there some sort of key feature I'm missing in my form? I figured that since a Toy Line and Manufacturer have already been created in the primary table (tblManufacturers) whatever information I enter in there first, if I spell it correctly will work in the form for my tblImages table.
Sorry if this is long, I do a lot of thinking when I write and I have a tendancy to get long-winded
Thanks for any info.
Gerry
I have a toy database consisting of two tables.
1). A Table of Manufacturers and Product Lines (Primary Table)
2). A table of Images of individual products and corresponding product lines.
The fields are broken down as follows:
tblManufacturers (Primary Table)
Field Names
dteDate (Date/Time)
strToyLine_ID (Autonumber - Primary Key)
strToyLine (Text)
strManufacturer (Text)
strLearn_More (Memo)
strBuy_Them (Memo)
tblImages (Secondary Table)
Field Names
dteDate (Date/Time)
strImageID (Text - Primary Key)
strImageName (Text)
strBasedOn (Text)
strManufacturer (Text)
strToyLine (Text)
strToyLine_ID (Number Indexed = Yes (Duplicates OK))
strSeriesNumber (Number)
dtmYearReleased (Number)
curRetailPrice (Currency)
strPicture (Text)
memComments (Memo)
I have a one to many relationship between the two tables on the strToyLine_ID Field.
I just recently added the strToyLine_ID column to both tables and established a one to many relationship on this field between the two tables for ease.
Since I already had around 1000 records in the tblImages table and 154 records in the tblManufacturers table I performed an update query to have the strToyLine_ID field in tblManufacturers copied over to the strToyLine_ID field in the tblImages table. Everything worked fine.
I have two forms created. One form that enters data into the tblManufacturers table and another form that enters data into the tblImages table. When entering data I always enter data first using the form for the tblManufacturers table.
The problem I'm having is now, when I enter new data in the form for entry in the tblImages table, I keep getting: You cannot add or change a record because a related record is required in table 'tblManufacturers'.
Is there some sort of key feature I'm missing in my form? I figured that since a Toy Line and Manufacturer have already been created in the primary table (tblManufacturers) whatever information I enter in there first, if I spell it correctly will work in the form for my tblImages table.
Sorry if this is long, I do a lot of thinking when I write and I have a tendancy to get long-winded

Thanks for any info.
Gerry