L
Laurel
In the script below I get an error "type mismatch" when the 2nd statement is
executed. In some situations I want the Academics field for a new row to be
null, and in others I want it to be 5. How can I set the DefaultValue to
null?
'Initialize the Academic score
If cboPeriod_Code = "B"
Forms!frmScoreEntry!Academics = Null
Forms!frmScoreEntry!Academics.DefaultValue = Null
Else
Forms!frmScoreEntry!Academics = 5
Forms!frmScoreEntry!Academics.DefaultValue = 5
End If
executed. In some situations I want the Academics field for a new row to be
null, and in others I want it to be 5. How can I set the DefaultValue to
null?
'Initialize the Academic score
If cboPeriod_Code = "B"
Forms!frmScoreEntry!Academics = Null
Forms!frmScoreEntry!Academics.DefaultValue = Null
Else
Forms!frmScoreEntry!Academics = 5
Forms!frmScoreEntry!Academics.DefaultValue = 5
End If