Here's some generic code you can use. You'll have to set Limit To List to Yes for the cbo. And, unless you're going to use my standard error handler, you'll want to replace the Call ErrorTrap... line with something of your own.
Public Function AddListItem(sTblNm As String, sFieldName As String, snewdata As String) _
As Integer
'(c)Copyright 2/6/01 Jeremy Wallace
On Error GoTo Error
Dim sSql As String
Dim lngID As Long
If vbYes = MsgBox("This does not match any existing entries. Do you want to permanently" _
& " add a new entry?", vbQuestion + vbYesNo, "New Data"

Then
sSql = "INSERT INTO " & sTblNm & " (" & sFieldName & "

VALUES ('" & snewdata _
& "')"
Call db.Execute(sSql, dbFailOnError)
AddListItem = acDataErrAdded
Else
AddListItem = acDataErrContinue
End If
Exit Function
Error:
Select Case Err.Number
Case 3022 ' dupe
Call MsgBox("This name is already in the drop-down list.", vbOKOnly + vbInformation, _
"Data Conflict"

Case Else
Call ErrorTrap(Err.Number, Err.Description, "AddListItem"

End Select
End Function
That bit goes in a standard module. Then, in the NotInList event of your combo box, put code something like this (same warning about the errorTrap call):
Private Sub cmbBank_NotInList(NewData As String, Response As Integer)
On Error GoTo Error
Response = AddListItem("tblBank", "BankName", NewData)
Exit Sub
Error:
ErrorTrap Err.Number, Err.Description, "cmbBank NotInList", "frmAccount"
End Sub
Hope this helps.
Jeremy
PS: Watch out for wrapped lines.
==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done
Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.