Hi
I would like to be able to combine several tables which all share the same fields. The only way to ascertain which data relates to which company is by looking at the table name as the last three characters of the table name tell you which company it is
dbo_SALFLDGASL would be for company ASL
dbo_SALFLDGASL would be for company CPL
I want to combine the two companies entirely in a SQL query but don't know how to add a column in the query that stores the last three characters of the table name.
Can anyone help? I understand it can be done in VBA.
Thanks very much.
SW
I would like to be able to combine several tables which all share the same fields. The only way to ascertain which data relates to which company is by looking at the table name as the last three characters of the table name tell you which company it is
dbo_SALFLDGASL would be for company ASL
dbo_SALFLDGASL would be for company CPL
I want to combine the two companies entirely in a SQL query but don't know how to add a column in the query that stores the last three characters of the table name.
Can anyone help? I understand it can be done in VBA.
Thanks very much.
SW