Lars-Ove Andersson wrote:
Sorry!
It should be "ENUM" not "INUM"
I have added reference to DAO, but the program still stop at "ENUM".
Aha, Sorry your version of Access is not as advanced :-)
Just change the block:
Public Enum tLookupReset
tLookupDoNothing = 0
tLookupRefreshDb = 1
tLookupSetToNothing = 2
End Enum
to:
Public Const tLookupDoNothing = 0
Public Const tLookupRefreshDb = 1
Public Const tLookupSetToNothing = 2
It will still work but you won't get the intellisense combo to choose
those values when you code it although typing "tlookup" then hitting
Ctrl+space will pop them up.
--
This sig left intentionally blank