I have a form that my client may or may not complete when they're inputting data. Therefore, there may be causes where a null value is being passed with the assignment of ctl.value.
After some research, it's been stated that you should use a variant to deal with this incoming null value. I'm not exactly sure how to implement variants. So any input would be much appreciated..... here's a snippet of my code:
For Each ctl In Screen.ActiveForm.Controls
If ctl.Tag = "Audit" Then
With rstAudit
.AddNew
![DateTime] = datTimeCheck
![UserName] = strUserID
![FormName] = Screen.ActiveForm.Name
![Action] = UserAction
![Record_ID] = MaxMember_id
![FieldName] = ctl.ControlSource
![NewValue] = ctl.Value ---------------this the line causing the error.....
.Update
End With
End If
Next ctl
CementCarver