PDA

Click to See Complete Forum and Search --> : Stinkin' Combo Boxes!!


PlayDoh
Aug 15th, 1999, 03:52 AM
I have a combo box within a form in Microsoft Access that shows a persons last name and first name. By picking a name I can see all the information on my form based on that persons name. However, I am unable to type a new persons name into the combo box and have it automatically update the actual First and Last name fields on the form if a record for them does not already exist. I keep getting a not in list error and what not.Is there a special way to allow a combo box to accept data entry? I have tried most of the ways in the property box with no success.
Thanks a lot for your help!!!

JHausmann
Aug 15th, 1999, 08:39 AM
Trap for the specific error and, when you encounter it, add it the new record in via DAO. Then refresh your data control.

Johnzea
Aug 16th, 1999, 02:02 AM
I Hope Your Using A DBCombo.. For The Clients Names..After You Have Entered The Data In All Your Text Boxes and Combo.You Will Have To Have An UpDate Button To Click..

Private Sub UpDateCommand_Click()

Data1.UpdateRecord
Data1.Recordset.Bookmark = Data1.Recordset.LastModified

End If


After that the data base will be updated with all the information and ready for your next input..
good luck Johnzea