Greetings,
I have generic validation in my forms. The same validation is involked for add / edit record forms.
If I use the add form and try adding a null record, the validation correctly indicates the error.
If I blank out the fields on the edit form and try committing, the validation routine bombs when it tries to ingest the values from the form fields.
Now, this is the same validation routine that correctly identified when I tried submitting a blank add form. What is different between the add forms default state and deleting the contents of fields on the edit form? To me I see it as the same. However to Access / VBA... ggggrrrrr....
Code blows up here:
MePointer is a form variable of the calling form having passed Me ByRef. That is how I am able to use the same validation class for both the add/edit forms.
Sample error log generated
Is there multiple NULL values a field can have? One when it is left in its default (unpopulated) state, and another when I delete the contents of the field's value?
I have generic validation in my forms. The same validation is involked for add / edit record forms.
If I use the add form and try adding a null record, the validation correctly indicates the error.
If I blank out the fields on the edit form and try committing, the validation routine bombs when it tries to ingest the values from the form fields.
Now, this is the same validation routine that correctly identified when I tried submitting a blank add form. What is different between the add forms default state and deleting the contents of fields on the edit form? To me I see it as the same. However to Access / VBA... ggggrrrrr....
Code blows up here:
Code:
'Receive fields from the UI
Me.userid = MePointer.flduserid.Value
Me.username = MePointer.fldusername.Value
Me.active = MePointer.fldactive.Value
Sample error log generated
Code:
Date: 20110831 Time: 16:17:36 UserID: c_mlueck
AppErrorMsg: Class: clsObjUIValidationAuthTbl, Function: Validate()
Error Source: Fandango_FE
Error Number: 94
Error Description: Invalid use of Null
MessageText: Error not found.