J
Joan
Hi there,
Is there a property or something I can use to update a
table based on a current record. i.e. I have a
receiptline table that I would like the user to be able
to create a new line for a new serial number on the part
by pressing a cmd button. I thought I had it working
using an INSERT SQL statement with a where clause of
tblrecieptline.recieptlineid = me.recieptlineid. I
cannot use recieptlineid on the form though because as
soon as I add that field to the qry that the subform is
based on it undoes my grouping.
To futher explain (background). I have the user able to
hit a cmd button on PO to create the receiptheader and
receiptline records based on the PONumber they are on.
This works except if there is more then one receipt
against the PO it creates duplicate records (because of
the previous PONumber). My ReceiptLines subform is built
based on a qry which groups the receiptlines together
based on the receiptno from the receipthdr (had to do
this way because of above). So if I add the
receiptlineid field to my qry for the subform, it then
returns the duplicate records I am trying to avoid based
on multiple receipts on one PO.
I don't know if I explained myself well enough, if more
info is needed let me know. If there is a way to perform
an insert based on current record property or
something.....
How do I do it?
Thanks in advance for your help. All is appreciated!
Is there a property or something I can use to update a
table based on a current record. i.e. I have a
receiptline table that I would like the user to be able
to create a new line for a new serial number on the part
by pressing a cmd button. I thought I had it working
using an INSERT SQL statement with a where clause of
tblrecieptline.recieptlineid = me.recieptlineid. I
cannot use recieptlineid on the form though because as
soon as I add that field to the qry that the subform is
based on it undoes my grouping.
To futher explain (background). I have the user able to
hit a cmd button on PO to create the receiptheader and
receiptline records based on the PONumber they are on.
This works except if there is more then one receipt
against the PO it creates duplicate records (because of
the previous PONumber). My ReceiptLines subform is built
based on a qry which groups the receiptlines together
based on the receiptno from the receipthdr (had to do
this way because of above). So if I add the
receiptlineid field to my qry for the subform, it then
returns the duplicate records I am trying to avoid based
on multiple receipts on one PO.
I don't know if I explained myself well enough, if more
info is needed let me know. If there is a way to perform
an insert based on current record property or
something.....
How do I do it?
Thanks in advance for your help. All is appreciated!