NotInList to requery in a Bound ComboBox

C

CRC

Hi,
I have created a blank table and given its name already. I was able to copy
the code from the example but it was for a unbound combo box. I am not quite
understanding why or how their explanation is about to make it fire for the
bound combo box. It is working fine with what I have. But Im hoping to make
it easier for the Users. Here is a sample of what is currently in use.
-------------------------------------------------------------
Private Sub Color_NotInList(NewData As String, _
Response As Integer)
Dim ctl As Control
Set ctl = Me!Color

If MsgBox("Color is not in list. Add it?", _
vbOKCancel) = vbOK Then
Response = acDataErrAdded
ctl.RowSource = ctl.RowSource & ";" & NewData
Else
Response = acDataErrContinue
ctl.Undo
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top