Paul Cooke
Registered User.
- Local time
- Today, 21:38
- Joined
- Oct 12, 2001
- Messages
- 288
Firstly apologies if this is posted in the wrong thread but I am not sure what area is right !
I have a form called 'Consumables' and within that a Subform called 'TreatmentConsumablesSubForm'. The purpose of this form is to record any consumables used in a specific treatment of a patient.
On the Subform I have controls related to my 'ConsumableProducts' Table
using the fk ConsumableID. I have a cbo called 'Product Code' If I type a legitimate product code into the cbo all is well.
if I type a code that does not exist the NotInList event triggers and a new form opens called 'ConsumableProductsNew'
On loading this form automically picks up a reference prefix and number (from a table called ReferenceNumber) the user enters the product and saves the form via a cmd button and all is well here to!
My problem is I need to know how to update the 'ConsumableProducts' Table
ProductCode field with the new reference prefix and number from the new product entered so when the user goes back to the original Consumables form they can then enter the new number into the product code control and it will come up. At the moment when try to enter the new product code it does noot come up but if i check the table it is showing in there.
I am assuming I need to requery the table or form but not sure how ?
any help will be gratefully recieved
Many thanks
I have a form called 'Consumables' and within that a Subform called 'TreatmentConsumablesSubForm'. The purpose of this form is to record any consumables used in a specific treatment of a patient.
On the Subform I have controls related to my 'ConsumableProducts' Table
using the fk ConsumableID. I have a cbo called 'Product Code' If I type a legitimate product code into the cbo all is well.
if I type a code that does not exist the NotInList event triggers and a new form opens called 'ConsumableProductsNew'
On loading this form automically picks up a reference prefix and number (from a table called ReferenceNumber) the user enters the product and saves the form via a cmd button and all is well here to!
My problem is I need to know how to update the 'ConsumableProducts' Table
ProductCode field with the new reference prefix and number from the new product entered so when the user goes back to the original Consumables form they can then enter the new number into the product code control and it will come up. At the moment when try to enter the new product code it does noot come up but if i check the table it is showing in there.
I am assuming I need to requery the table or form but not sure how ?
any help will be gratefully recieved
Many thanks