devxlogo

Preventing “Invalid Use of Null” Errors

Preventing “Invalid Use of Null” Errors

If your app uses database or other functions that can return Null variants,your app will crash sooner or later with that dreaded “Invalid Useof Null” error. Preventing it is simple: assign an empty stringand a variant to your target variable or control:

 Text1.Text = "" & SomeDynaset("SomeField")

devx-admin

Share the Post: