stumped
trying to check the value of an unbound control as it is being entered (vs. before / after update, lost focus...);
essentially as soon as the user starts to enter printing characters into the textbox
Code:
Private Sub txtTemplateName_Change(frm As Form)
Dim blnIsNew As Boolean
With frm
blnIsNew = IsNull(DLookup("[TemplateID]", "tblLuminaireTemplates", "[LuminaireType]= '" & .cboLuminaireType & "' AND [TemplateName] = '" & Trim(.txtTemplateName) & "'"))
If blnIsNew Then
.cmdSaveTemplate.Enabled = True
End If
End With
End Sub
as always, with appreciation in advance,
m.