If IsNull(Me!TextBox.Value) Then
If Me.ControlName & ""="" then
ASKER
ASKER
Public Function IsNullOfBlank(SomeValue as Variant) as Boolean
IsNullOrBlank = (Trim(SomeValue & "") = "")
End Function
Then I use it like:IF IsNullOrBlank(me.ControlName) then
Which makes it very clear to those that follow behind me what I'm checking for.
ASKER
the only time IsNull(me.TextBox) will return a NULL is if the field that TextBox is bound to is NULL.
ASKER
ASKER
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
If IsNull (TextBox) or Len(TextBox) = 0 Then