So I have a combo box that is passing a value to a variable that must be defined as integer. The combo box is bound on an Autonumber field. However, when a null value is passed to the variable it is still passing a "" vs. 0. I am sure there is code to force the value of 0 to be passed if the value is null. I have included the piece of code for reference (varMetricNumber is the one I am concerned with). Thanks in advance.
Code:
Dim varMetricName, varDataNumber
Dim varMetricNumber As Integer
varDataNumber = Form_frmFindMetric.cboDatamartName.Value
varMetricName = Form_frmFindMetric.cboMetricName.Value
varMetricNumber = Form_frmFindMetric.cboMetricNumber.Value