Autoeng
Why me?
- Local time
- Today, 18:12
- Joined
- Aug 13, 2002
- Messages
- 1,302
Hi guys,
Been a while since I've been on as work has been hectic to say the least. I've got a problem that I hope someone can help me out with though.
Got a new db that I'm building that is linked to an AS400 mainframe db. From the mainframe db I am linking to the primary table (tblAS400Data) of my new db. I am pulling in information related to parts. I cannot alter / add / delete to this table. I want to be able to add information to the part information in that table so I constructed a new table (tblComments) with PartNumber as pk and a Comments field. I established a relationship between tblAS400Data field PRDNO and tblComments field PartNumber.
I built a form based on a query of tblAS400Data with a subform based on a query of tblComments. Linked the form / subform. How can I, when I add comments to a part, write the part number (PRDNO) to the tblComments so that it gets saved? Currently when I try I get "PK cannot be null" as tblComments has yet to be populated with the PRDNO/PartNumber. I'd like to do this as I add comments to each part instead of populating the tblComments with all parts at one time because parts are constantly being to add tblAS400Data.
Any help would be greatly appreciated.
Been a while since I've been on as work has been hectic to say the least. I've got a problem that I hope someone can help me out with though.
Got a new db that I'm building that is linked to an AS400 mainframe db. From the mainframe db I am linking to the primary table (tblAS400Data) of my new db. I am pulling in information related to parts. I cannot alter / add / delete to this table. I want to be able to add information to the part information in that table so I constructed a new table (tblComments) with PartNumber as pk and a Comments field. I established a relationship between tblAS400Data field PRDNO and tblComments field PartNumber.
I built a form based on a query of tblAS400Data with a subform based on a query of tblComments. Linked the form / subform. How can I, when I add comments to a part, write the part number (PRDNO) to the tblComments so that it gets saved? Currently when I try I get "PK cannot be null" as tblComments has yet to be populated with the PRDNO/PartNumber. I'd like to do this as I add comments to each part instead of populating the tblComments with all parts at one time because parts are constantly being to add tblAS400Data.
Any help would be greatly appreciated.
Last edited: