I need to know if this particular block of code will work, and if not, what i need to do to make it work. I’m doing touchy business and i’d prefer to have it right the first time.
strsql = "IF COL_LENGTH('orders','nosign') IS NULL" & _
"BEGIN" & _
"ALTER TABLE orders" >& _
"ADD nosign bit;" & _
"END"
You need either a space or a carriage return line feed (vbcrlf) where your “&”s are.
I think this is what you’d want:
strsql = “IF COL_LENGTH(‘orders’,’nosign’) IS NULL BEGIN ALTER TABLE orders ADD nosign bit; END”