the_net_2.0
Banned
- Local time
- Today, 04:59
- Joined
- Sep 6, 2010
- Messages
- 812
All,
Strange issue here - I have a template mdb file. In that file, I have a query like so:
When my app runs and this file is copied to a directory where the app looks for the file and manipulates data in it, the query changes to this after the copy operation:
The field aliases disappear. I can't seem to figure out why they DON'T disappear after I make any other structural changes to other tables in the template db file. I can virtually do anything, and at that point they don't disappear anymore.
I can't have them hang around because after a while the code runs this query (append type query). And the error is:
I am at a loss. No idea what's happening. Any insight folks?
thanks!
Strange issue here - I have a template mdb file. In that file, I have a query like so:
Code:
INSERT INTO [table0] ( [1], [2], [3] )
SELECT [table1].[field1] AS Expr1, [table1].[field2] AS Expr2, [table1].[field3], 'N' as Expr1
FROM [table1];
When my app runs and this file is copied to a directory where the app looks for the file and manipulates data in it, the query changes to this after the copy operation:
Code:
INSERT INTO [table0] ( [1], [2], [3] )
SELECT [table1].[field1], [table1].[field2], [table1].[field3], 'N' as Expr1
FROM [table1];
The field aliases disappear. I can't seem to figure out why they DON'T disappear after I make any other structural changes to other tables in the template db file. I can virtually do anything, and at that point they don't disappear anymore.
I can't have them hang around because after a while the code runs this query (append type query). And the error is:
Duplicate output field name 'Expr1' in query.
I am at a loss. No idea what's happening. Any insight folks?
thanks!