Hi all Access experts and Gurus!
I have a form called frmPosition which tracks the position of ships. It retrieves data from a Query called tblPositionsQuery. My form is made up of many bound combo boxes as well as other assorted fields. The key field is cboVesselName which is unbound. I'm doing this because I want to be able to select existing record by typing in a portion of the vessel name to be able to select the record for editing. I also have it set up so if a ship isn't in the list then you have an option to add the new ship to the table (i found code on the internet to do this). It works fine; it adds the new record to the table with all remaining fields blank exactly as it should.
The problem is that the other fields in the form aren't aware that the new record exists, so all fields are filled with the first record in the table even though the ships name has changed. If I use the mouse roller fields change as though your scrolling through the vessel list, except the vessel name remains as the new vessel just added.
If I close and reopen the form then go to the newly added vessel, the feilds are empty just as they should be ready for data entry.
How can I do this with out closing and reopening the form?
Any assistance would be greatly appreciated.
I have a form called frmPosition which tracks the position of ships. It retrieves data from a Query called tblPositionsQuery. My form is made up of many bound combo boxes as well as other assorted fields. The key field is cboVesselName which is unbound. I'm doing this because I want to be able to select existing record by typing in a portion of the vessel name to be able to select the record for editing. I also have it set up so if a ship isn't in the list then you have an option to add the new ship to the table (i found code on the internet to do this). It works fine; it adds the new record to the table with all remaining fields blank exactly as it should.
The problem is that the other fields in the form aren't aware that the new record exists, so all fields are filled with the first record in the table even though the ships name has changed. If I use the mouse roller fields change as though your scrolling through the vessel list, except the vessel name remains as the new vessel just added.
If I close and reopen the form then go to the newly added vessel, the feilds are empty just as they should be ready for data entry.
How can I do this with out closing and reopening the form?
Any assistance would be greatly appreciated.