L
Lars Brownies
In a form's BeforeUpdate I check if certain fields are empty, and if that's
the case I cancel the BeforeUpdate. I always use this kind of code for that:
If IsNull([Surname] or Surname = "" then
However, I noticed that others use other ways for checking this:
If Len(Nz([Surname],"")) = 0 Then
If Len(Trim([Surname] & "")) = 0 then
If RTrim([Surname].Text) = Nothing Then
If Nz([SurName],"") = "" Then
I'm wondering what I can use best in this case.
Also I'm wondering, why do you have to check for a "" value? The only way a
textbox could get that value would be through vba, or am I missing
something?
Thanks,
Lars
the case I cancel the BeforeUpdate. I always use this kind of code for that:
If IsNull([Surname] or Surname = "" then
However, I noticed that others use other ways for checking this:
If Len(Nz([Surname],"")) = 0 Then
If Len(Trim([Surname] & "")) = 0 then
If RTrim([Surname].Text) = Nothing Then
If Nz([SurName],"") = "" Then
I'm wondering what I can use best in this case.
Also I'm wondering, why do you have to check for a "" value? The only way a
textbox could get that value would be through vba, or am I missing
something?
Thanks,
Lars