Ok, basically I have an equipment table, a sale table, and a purchase table. Each piece of equipment can have a sale and a purchase. So when I go into the "Add Sale" or "Add Purchase" forms, there is a combo box so you can select which piece of equipment the sale/purchase refers to. The thing is, usually when adding a sale or purchase it will be for a brand new piece of equipment, so when you go into the sale or purchase forms, there is a button on there which opens the Add Equipment form. So you can then add the equipment, and then close the Add Equipment for and you will be back at the sale/purchase form. The problem is that after you have added the new equipment, it is not always added to the combo box.
I am sure the combo box information needs to just be rechecked. If you open the Add Sale form, then go straight into the Add Equipment, add the equipment, THEN check the combo box, the equipment is there. But if you check the combo box first, it obviously saves the list of data the combo box is meant to show in a cache somewhere, because then it won't update it unless you reload the form.
The combo box is getting the data straight from the table, no query.
I know it is probably a simple problem, so what is the solution?
Also, if possible, after the "Add Equipment" form is closed, is there anyway the combo box could be set to automatically have the new piece of equipment selected? I know you could specifically do it in the "Add Equipment" form, by having a macro run when the form closes that sets the value of the combo box, but sometimes the equipment form will be opened without the sale/purchase forms being open, so it will give an error and say it cannot find the required combo box to set. So the functionality to control this stuff will have to be in the sale/purchase forms, not in the Add Equipment form.
I am sure the combo box information needs to just be rechecked. If you open the Add Sale form, then go straight into the Add Equipment, add the equipment, THEN check the combo box, the equipment is there. But if you check the combo box first, it obviously saves the list of data the combo box is meant to show in a cache somewhere, because then it won't update it unless you reload the form.
The combo box is getting the data straight from the table, no query.
I know it is probably a simple problem, so what is the solution?
Also, if possible, after the "Add Equipment" form is closed, is there anyway the combo box could be set to automatically have the new piece of equipment selected? I know you could specifically do it in the "Add Equipment" form, by having a macro run when the form closes that sets the value of the combo box, but sometimes the equipment form will be opened without the sale/purchase forms being open, so it will give an error and say it cannot find the required combo box to set. So the functionality to control this stuff will have to be in the sale/purchase forms, not in the Add Equipment form.