This looks valid for a Jet database, provided "Variable" contains a valid name. Is this, in fact, Jet? (If not, TEXT may not be a valid datatype.) What's in Variable? (Check it in the Debug window.) Rick Sprague
In the example you give, "Denver-Boulder-Greeley, CO", this is not a valid column name. It might work if you enclosed it in square brackets--I'm not sure. Try this:
dbs.execute "ALTER TABLE example " _
& "ADD COLUMN [" & Variable & "] TEXT;" Rick Sprague
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.