Hi,
Is it possible to change the names of some fields after copying a table using copyobject. I have a table that I would like to copy so that I can change some of the field names because they where giving names with gaps in them and I cant put them in code like; "fwd for match" and the table is called "trust staff". I have copied the table and renamed it "tbltruststaff" at the start of an onclick command to create a query on the fly:
DoCmd.CopyObject "J.E.D new..mdb.", "tbltruststaff", acTable, "trust staff"
This works fine but I was wondering if I could change the field names before the rest of the code is run.
Is it possible to change the names of some fields after copying a table using copyobject. I have a table that I would like to copy so that I can change some of the field names because they where giving names with gaps in them and I cant put them in code like; "fwd for match" and the table is called "trust staff". I have copied the table and renamed it "tbltruststaff" at the start of an onclick command to create a query on the fly:
DoCmd.CopyObject "J.E.D new..mdb.", "tbltruststaff", acTable, "trust staff"
This works fine but I was wondering if I could change the field names before the rest of the code is run.