I have entered a new project at work and have noticed something that boggles my mind.
through out the project the following statements are used to set a value to NULL:
IsNull()
=Null
= ""
vbNullString
I know to start with one and work my way through the NULL options until I do not get an error. However, being the curious one that I am, I would like to know the theory behind each one so I can be a more effective programmer.
The main difference I notice with these is that sometimes they pass a blank value to the SQL Server and some times they do not pass anything. A cell in the database will either read "<Null>" or " " (blank).
Jason
through out the project the following statements are used to set a value to NULL:
IsNull()
=Null
= ""
vbNullString
I know to start with one and work my way through the NULL options until I do not get an error. However, being the curious one that I am, I would like to know the theory behind each one so I can be a more effective programmer.
The main difference I notice with these is that sometimes they pass a blank value to the SQL Server and some times they do not pass anything. A cell in the database will either read "<Null>" or " " (blank).
Jason