I realize now that the answer I gave you was inappropriate.
To change the field names, you need to work with table defs.
Just off the top of my head (may have some compilation or logic errors, but it should get you started)
Dim MyDb as database
set mydb = currentdb
dim MyTDF as tabledef
set mytdf = mydb.tabledefs("TheTableWithExcelFields"
dim CurField as field
for each curfield in mytdf.fields
curfield.name = trim(curfield.name)
next curfield
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.