I have a form in which I assign some values
but if the fields txtBudgetID and txtMonth are empty, the code will fail since it's not possible to convert empty strings to numeric variables.
How can I make sure the code will work?
Code:
With Me
Let lBudgetID = .txtBudgetID.Value
Let lMonthNo = .txtMonth.Value
End With
but if the fields txtBudgetID and txtMonth are empty, the code will fail since it's not possible to convert empty strings to numeric variables.
How can I make sure the code will work?
Last edited: