Message 1 of 2
clsObjectProp is 0 length string, attribute.textstring wont accept this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My clsObject ContNumItem.Mark property is a String data type... why would this pop a Invalid Input -2145386493 error when ContNumItem.Mark is a zero length string.
varAtts(incAtt).TextString = ContNumItem.Mark
I ended up having to use:
[code]
If ContNumItem.ProductCode = "" Then
varAtts(incAtt).TextString = ""
Else
varAtts(incAtt).TextString = ContNumItem.ProductCode
End If
[/code]
It also will not accept vbNullString which VBA reads as "". Message was edited by: hutch
varAtts(incAtt).TextString = ContNumItem.Mark
I ended up having to use:
[code]
If ContNumItem.ProductCode = "" Then
varAtts(incAtt).TextString = ""
Else
varAtts(incAtt).TextString = ContNumItem.ProductCode
End If
[/code]
It also will not accept vbNullString which VBA reads as "". Message was edited by: hutch