If me.Tb1.value = Null is correct syntax for some languages, even SQL in Access, for instance, in VBA Code, it has to be If IsNull(me.Tb1.value)
Thanks for the correction Missinglinq really messed up there
You cannot place code used to validate that a given Field is populated in the AfterUpdate event of that Field
The idea here is simply to ensure that all the fields actually have a value. Be it Text, date/Time, Number ..... Does not matter If all the fields have a value then the CmdSave is then enabled. This will ensure that a user does delete a value entered in a previous textbox because doing that will disable the command save button. This is why the verification can only be done in after update event of the field. For correction of the code above it will actually look like this:
Code:
If Not IsNull(me.Tb1) or Not IsNull (Me.Tb2) or Not IsNull (Me.Tb3) Then me.CmdSave.Enable = True Else Me.CmdSave.Enable = False End if