On Dec 03 2004, 03:09 am,
an*******@hotmail.com (@ndy) wrote in
news:6c**************************@posting.google.c om:
I import an excel sheet to access and know i won't to delete some
columns. This my code that doesn't work.
strSQLAlter = "ALTER TABLE ImpTableB DROP COLUMN Dossier-beheerder"
DoCmd.RunSQL strSQLAlter
Because the column name contains a minus sign, it has to be enclosed in
square brackets:
strSQLAlter = "ALTER TABLE ImpTableB DROP COLUMN [Dossier-beheerder]"
--
remove a 9 to reply by email