S
SuzanneShah
I've been struggling with this for days and am hoping for some help.
The scenario is:
I have an access database which records production information.
Some of the data it uses is pulled from Navision using linked tables.
I have a table in access which records machining data (TBLMachining) [Date,
Item No, Sales Order No, Qty, Length etc) - part of this is used to record
the sales price on an item (qty x weight per item x sales price). This is
done by using a combo box which looks up a linked Sales Order table
(QRYSalesOrders) which includes the sales price.
The primary Sales Order Tables have a dual Primary Key - which I can't
change as it's a linked table and cannot write back to the Navision database.
The field the form records to TBLMachining is the sales order number.
The problem is that a sales order number can have more than one order line
ie
Order No Item No Sales price
SORD25368, M000250, 0.25
SORD25368, M000255, 0.35
SORD25368, M100300, 0.40
SORD25368, M300050, 0.20
so when I select the relevant sales order number and item number, instead of
recording the price from the 4th line, it records the price from the 1st.
I've tried to get the Sales order number combo box to filter on a field on
the form which holds the item number - I can't seem to make it work.
Ideally I'd like the field to retain the data from the 4th line though.
A solution would be much appreciated.
Thanks
The scenario is:
I have an access database which records production information.
Some of the data it uses is pulled from Navision using linked tables.
I have a table in access which records machining data (TBLMachining) [Date,
Item No, Sales Order No, Qty, Length etc) - part of this is used to record
the sales price on an item (qty x weight per item x sales price). This is
done by using a combo box which looks up a linked Sales Order table
(QRYSalesOrders) which includes the sales price.
The primary Sales Order Tables have a dual Primary Key - which I can't
change as it's a linked table and cannot write back to the Navision database.
The field the form records to TBLMachining is the sales order number.
The problem is that a sales order number can have more than one order line
ie
Order No Item No Sales price
SORD25368, M000250, 0.25
SORD25368, M000255, 0.35
SORD25368, M100300, 0.40
SORD25368, M300050, 0.20
so when I select the relevant sales order number and item number, instead of
recording the price from the 4th line, it records the price from the 1st.
I've tried to get the Sales order number combo box to filter on a field on
the form which holds the item number - I can't seem to make it work.
Ideally I'd like the field to retain the data from the 4th line though.
A solution would be much appreciated.
Thanks