scottintexas
Programmer
I am using Access 2007. I am taking field values from a form and putting them into the properties of a class object. Some values can be null, but I get the error "Invalid use of null..." because the property is expecting a value. How do I tell a property that null is ok?
For example I have this property
Public Property Let ShipperSuite(ByVal vNewValue As String)
shipperAdd2 = vNewValue
End Property
in my code I have;
Order.ShipperSuite=Me.ShipSuite 'which is a null text field
To be clear, I do not want to assign null, I just don't care if the field is empty. I really don't want to go through each property and check to see if the value is null and turn it into an empty string.
ScottInTexas
It's probably as hard as it looks.
For example I have this property
Public Property Let ShipperSuite(ByVal vNewValue As String)
shipperAdd2 = vNewValue
End Property
in my code I have;
Order.ShipperSuite=Me.ShipSuite 'which is a null text field
To be clear, I do not want to assign null, I just don't care if the field is empty. I really don't want to go through each property and check to see if the value is null and turn it into an empty string.
ScottInTexas
It's probably as hard as it looks.