From a newbie (using Access97)
Table source is [tblBuildings], which has three fields, [BuildingID], [BuildingName], and [BuildingDetails].
My data entry form is [frmBuildings] (control source is [tblBuildings]). On [frmBuildings], I have placed an unbound combo box [cboFindBuilding] to use to locate the records. The control source of the combo box is also tblBuildings. My key field is BuildingID; BuildingName is indexed, w/no duplicates.
I need my form to do are three things:
1) When I type into the combo box the name of a building whose name is not in the combo box/tblBuildings, I want the combo box to ask if I would like to add it.
2) Upon an affirmative answer,I want the form frmBuildings (which I already have open)to open to a new record, and put the data from the combo box into the field named BuildingName.
3) With the new record added, I would like the combo box to reflect the addition of the new record.
Hope this makes sense. I have hundreds of records in this table so it will make my life alot easier if I can rig this up.
Thanking you very much in advance. PamelaD
Table source is [tblBuildings], which has three fields, [BuildingID], [BuildingName], and [BuildingDetails].
My data entry form is [frmBuildings] (control source is [tblBuildings]). On [frmBuildings], I have placed an unbound combo box [cboFindBuilding] to use to locate the records. The control source of the combo box is also tblBuildings. My key field is BuildingID; BuildingName is indexed, w/no duplicates.
I need my form to do are three things:
1) When I type into the combo box the name of a building whose name is not in the combo box/tblBuildings, I want the combo box to ask if I would like to add it.
2) Upon an affirmative answer,I want the form frmBuildings (which I already have open)to open to a new record, and put the data from the combo box into the field named BuildingName.
3) With the new record added, I would like the combo box to reflect the addition of the new record.
Hope this makes sense. I have hundreds of records in this table so it will make my life alot easier if I can rig this up.
Thanking you very much in advance. PamelaD