Sorry if this is in the wrong forum.
I need a little help with the design of the following.
I have a two tables setup like the so
TABLE 1 (TblDocument)
DocumentID (AutoNumber) - Primary key
DocumentNo
AccountID
DocumentType
TABLE 2 (TblTransactions)
TransactionID (AutoNumber) - Primary key
DocumentID - Foreign key
PartNo
OrderQty
ReceivedQty
I also have 2 Forms
FrmPurchaseOrder with FrmPOSub
FrmGoodsReceived with FrmGRSub
When I create a purchase order all goes well.
Now for the problem.
I create a purchase order for 10 * PartNo1 from Supplier1 on 20/8/12
Supplier1 delivers 5 * PartNo1 on 21/8/12
Supplier1 delivers 3 * PartNo1 on 22/8/12
Supplier1 delivers 2 * PartNo1 on 23/8/12
What I would like to happen is when I open the FrmGoodsReceived form it opens to a record that I have selected on a previous form ( Which I have working ) but if I open the form on the 21/8/12 and enter 5 in the ReceivedQty field then open the form on the 22/8/12 the 5 is still showing and if I enter 3 then the five disappears and so on for each time I receive.
What I would like it to do is create a new transaction for each time I receive a qty then in an unbound field at the end of the line i will have it show the qty outstanding when the form is opened and the RecievedQty field is blank.
Hope this makes sense and thanks in advance for any help.
Gareth
I need a little help with the design of the following.
I have a two tables setup like the so
TABLE 1 (TblDocument)
DocumentID (AutoNumber) - Primary key
DocumentNo
AccountID
DocumentType
TABLE 2 (TblTransactions)
TransactionID (AutoNumber) - Primary key
DocumentID - Foreign key
PartNo
OrderQty
ReceivedQty
I also have 2 Forms
FrmPurchaseOrder with FrmPOSub
FrmGoodsReceived with FrmGRSub
When I create a purchase order all goes well.
Now for the problem.
I create a purchase order for 10 * PartNo1 from Supplier1 on 20/8/12
Supplier1 delivers 5 * PartNo1 on 21/8/12
Supplier1 delivers 3 * PartNo1 on 22/8/12
Supplier1 delivers 2 * PartNo1 on 23/8/12
What I would like to happen is when I open the FrmGoodsReceived form it opens to a record that I have selected on a previous form ( Which I have working ) but if I open the form on the 21/8/12 and enter 5 in the ReceivedQty field then open the form on the 22/8/12 the 5 is still showing and if I enter 3 then the five disappears and so on for each time I receive.
What I would like it to do is create a new transaction for each time I receive a qty then in an unbound field at the end of the line i will have it show the qty outstanding when the form is opened and the RecievedQty field is blank.
Hope this makes sense and thanks in advance for any help.
Gareth