G
graeme34 via AccessMonster.com
Hi,
I am trying to use a subform for entering order details, the master form
(sales order)
has 5 control boxes, (account index, sales order Number, order date,
customers order number and delivery mode). the child form has seven control
boxes, six of which are based on a select query the other being a calculated
field. One of the control boxes on the subform is also sales order number.
What I am wanting to do is make the subform order number equal to the master
order number. I thought Access automatically did this am I going wrong
somewhere, is a fault with my query, on which the subform is based? Here is
the query..
SELECT tblSalesOrderLine.SalesOrderNumber, tblSalesOrderLine.[Product Code],
tblProduct.Description, tblSalesOrderLine.QuantityOrdered, tblSalesOrderLine.
Price, tblSalesOrderLine.VATRate
FROM tblSalesOrder INNER JOIN (tblProduct INNER JOIN tblSalesOrderLine ON
tblProduct.[Product Code]=tblSalesOrderLine.[Product Code]) ON tblSalesOrder.
SalesOrderNumber=tblSalesOrderLine.SalesOrderNumber;
Any suggestions would be greatly appreciated.
Thank you!
I am trying to use a subform for entering order details, the master form
(sales order)
has 5 control boxes, (account index, sales order Number, order date,
customers order number and delivery mode). the child form has seven control
boxes, six of which are based on a select query the other being a calculated
field. One of the control boxes on the subform is also sales order number.
What I am wanting to do is make the subform order number equal to the master
order number. I thought Access automatically did this am I going wrong
somewhere, is a fault with my query, on which the subform is based? Here is
the query..
SELECT tblSalesOrderLine.SalesOrderNumber, tblSalesOrderLine.[Product Code],
tblProduct.Description, tblSalesOrderLine.QuantityOrdered, tblSalesOrderLine.
Price, tblSalesOrderLine.VATRate
FROM tblSalesOrder INNER JOIN (tblProduct INNER JOIN tblSalesOrderLine ON
tblProduct.[Product Code]=tblSalesOrderLine.[Product Code]) ON tblSalesOrder.
SalesOrderNumber=tblSalesOrderLine.SalesOrderNumber;
Any suggestions would be greatly appreciated.
Thank you!