Hi,
Is there any way to append form that contains subform to another form with subform.
See attachment.
I made sample database:
table Inv with fields
InvoiceId - autonumber
InvoiceDate - date
table Quo with fields
InvoiceId - autonumber
InvoiceDate - date
table Pro
ProductId - autonumber
ProductName - text
table InvPro
InvoiceId - number
ProductId - number
table QuoPro
InvoiceId - number
ProductId - number
Tables Inv and InvPro and Pro are in 1 to many relation ship
Tables Quo and QuoPro and Pro are in 1 to many relation ship
I created following Query InvProd
using tables InvPro and Pro
that contains InvoiceId ProductID and ProductName fields
Query QuoProd
using tables QuoPro and Pro
that contains InvoiceId ProductID and ProductName fields
I made forms:
Inv : InvoiceId, InvoiceDate
with subforms (query InvProd)
Quo : InvoiceId, InvoiceDate
with subforms (query QuoProd)
I populated booth forms and have in form Inv - invoice nr 1 and 3 products, form Quo invoice nr 1 and nr 2 booth with 5 and 6 product items.
What I want is to import from the form Quo invoice nr 2 to form Inv so that I receive in form Inv invoice nr 2 with 6 product items.
Meaning of is :
As i do quotation for some company, some of them get approved and some not, approved one will be realized so they have to go to Inv form, the other that they are not approved stay in quotation and they don't enter my bookkeeping side of program - they are not realized sales.
This is my Sql:
INSERT INTO InvPro ( InvoiceId, ProductId, ProductName )
SELECT [QuoProd].[InvoiceId], [QuoProd].[ProductId], [QuoProd].[ProductName]
FROM QuoProd
WHERE [QuoProd].[InvoiceId]=2;
I will make select query with criteria [EnterInvoiceId] that will ask you which invoice from Quotation will be append.
Tks,
GagaZ
Is there any way to append form that contains subform to another form with subform.
See attachment.
I made sample database:
table Inv with fields
InvoiceId - autonumber
InvoiceDate - date
table Quo with fields
InvoiceId - autonumber
InvoiceDate - date
table Pro
ProductId - autonumber
ProductName - text
table InvPro
InvoiceId - number
ProductId - number
table QuoPro
InvoiceId - number
ProductId - number
Tables Inv and InvPro and Pro are in 1 to many relation ship
Tables Quo and QuoPro and Pro are in 1 to many relation ship
I created following Query InvProd
using tables InvPro and Pro
that contains InvoiceId ProductID and ProductName fields
Query QuoProd
using tables QuoPro and Pro
that contains InvoiceId ProductID and ProductName fields
I made forms:
Inv : InvoiceId, InvoiceDate
with subforms (query InvProd)
Quo : InvoiceId, InvoiceDate
with subforms (query QuoProd)
I populated booth forms and have in form Inv - invoice nr 1 and 3 products, form Quo invoice nr 1 and nr 2 booth with 5 and 6 product items.
What I want is to import from the form Quo invoice nr 2 to form Inv so that I receive in form Inv invoice nr 2 with 6 product items.
Meaning of is :
As i do quotation for some company, some of them get approved and some not, approved one will be realized so they have to go to Inv form, the other that they are not approved stay in quotation and they don't enter my bookkeeping side of program - they are not realized sales.
This is my Sql:
INSERT INTO InvPro ( InvoiceId, ProductId, ProductName )
SELECT [QuoProd].[InvoiceId], [QuoProd].[ProductId], [QuoProd].[ProductName]
FROM QuoProd
WHERE [QuoProd].[InvoiceId]=2;
I will make select query with criteria [EnterInvoiceId] that will ask you which invoice from Quotation will be append.
Tks,
GagaZ
Last edited: