rproactive
Technical User
HI I am using a module (ref GLOBAL Not In List Event Handler faq702-5205) to allow entering new values in combo box. It is generating the following error: “Compile error: Expected variable or prodedure, not module”
The event code I attached to the combo box is:
The error is at statement: If AddToList (Me, "L_Bank", "BankName") Then
This FAQ is exactly what I have been looking for & would love to get it to work.
Any ideas onwhat’s wrong?
TheAceMan1 is author of the FAQ- thanks for coming up with a very use- again any help it me getting to work is appreciated.
The event code I attached to the combo box is:
Code:
Private Sub cboBanksID_NotInList(NewData As String, Response As Integer)
If AddToList(Me, "L_Bank", "BankName") Then
Response = acDataErrAdded
Else
Response = acDataErrContinue
Me!cboBanksID.Undo 'Optional. Restores previous text.
End If
The error is at statement: If AddToList (Me, "L_Bank", "BankName") Then
This FAQ is exactly what I have been looking for & would love to get it to work.
Any ideas onwhat’s wrong?
TheAceMan1 is author of the FAQ- thanks for coming up with a very use- again any help it me getting to work is appreciated.