S
Steven Britton via AccessMonster.com
I have two tables, one is tblParts and the other is tblSuppliers. I import
data into a temp table then append it to the tblPart if the Part Numbers
don't already exist. I append the part number and description which comes
over and use a zero 0 - as the supplier number. I have a form open that
selects zeros in the tblParts as the criteria. Then the users have to go
into the ancient system and look up the Supplier Numbers for these Parts.
If the supplier number already exists in the tblSuppliers (ie exsiting
vendors) I don't have a problem. But if there not in the tblsuppliers I
get an error saying they can't be found and the record can't be changed
because of the relantionship, which it correct...
How do I on the same form allow someone to change the supplier on the form
and if it's not listed in the tblSuppliers add a new supplier?
This is the SQL that controls the form.
SELECT tblParts.PartNum, tblParts.PartDesc, tblParts.PartSupplierId,
tblSupplier.SupplierNum, tblSupplier.SupplierName
FROM tblSupplier INNER JOIN tblParts ON tblSupplier.SupplierNum =
tblParts.PartSupplierId
WHERE (((tblParts.PartSupplierId)=0));
Thanks.
data into a temp table then append it to the tblPart if the Part Numbers
don't already exist. I append the part number and description which comes
over and use a zero 0 - as the supplier number. I have a form open that
selects zeros in the tblParts as the criteria. Then the users have to go
into the ancient system and look up the Supplier Numbers for these Parts.
If the supplier number already exists in the tblSuppliers (ie exsiting
vendors) I don't have a problem. But if there not in the tblsuppliers I
get an error saying they can't be found and the record can't be changed
because of the relantionship, which it correct...
How do I on the same form allow someone to change the supplier on the form
and if it's not listed in the tblSuppliers add a new supplier?
This is the SQL that controls the form.
SELECT tblParts.PartNum, tblParts.PartDesc, tblParts.PartSupplierId,
tblSupplier.SupplierNum, tblSupplier.SupplierName
FROM tblSupplier INNER JOIN tblParts ON tblSupplier.SupplierNum =
tblParts.PartSupplierId
WHERE (((tblParts.PartSupplierId)=0));
Thanks.