Combo box with msgbox if the selected item is not in the record

juniepiper27

Registered User.
Local time
Today, 07:30
Joined
Sep 24, 2014
Messages
49
Dear Si,

I want a Messagebox to be appear if the selected item or if the input item in the combobox was not in the record.

I used this condition in combobox

="[asstnumbr] = " & "'" & [Screen].[ActiveControl] & "'"

but when I try this run code function in macro via IFF will become error

IIf([asstnumbr]<>"'" & [Screen].[ActiveControl] & "'",MsgBox("NO RECORD FOUND IN YOUR SEARCH"))


Please help me for this... thank you so much...
 

Users who are viewing this thread

Back
Top Bottom