In a VBA code of a button of an Access form, I have the following code:
The result is an error like this:
What is owed and how to solve it?
First, whenever you put code, put it as text, never as an image, please. .
Second, you use IsNull
only once. But looking at your code, I understand that you want to check if any of the 4 fields is null. As you have written it, you are only checking the first one. The correct sentence would be something like:
If IsNull(campo1) = True Or IsNull(campo2) = True Or IsNull(campo3) = True Or IsNull(campo4) = True Then
I would copy it with your data, but as you have put the code as an image ....;)