Pascal,
I'm trying to write a LotusScript that will loop through all the documents and write out SQL statements to the new relational database that will be storing this data. One of the fields in the Notes document allows the user to check multiple fields (Cash, Surety or 10%). If that field (BondType) contains Surety in ANY of the value array, then I need a string set to S otherwise the string should be C.
I've tried:
but that gives me a type mismatch error.
What am I doing wrong?
Thanks!
Les
I'm trying to write a LotusScript that will loop through all the documents and write out SQL statements to the new relational database that will be storing this data. One of the fields in the Notes document allows the user to check multiple fields (Cash, Surety or 10%). If that field (BondType) contains Surety in ANY of the value array, then I need a string set to S otherwise the string should be C.
I've tried:
Code:
If Instr(doc.GetItemValue("BondType"), "Surety") > 0 Then
sBondType = "S"
Else
sBondType = "C"
End If
What am I doing wrong?
Thanks!
Les