Is there a way to modify a query, adding permenantly to it (periodically) through code (function, etc)?
We receive our Nextel billing as an Access db and normally the info is only needed monthly and not as a union of the multiple months. Though lately I have had to compile multiple month data. I have an Admin db that I link the tables from the individual month's files (now 177MB each). Since the max db sizefor Access 2000 is 1GB and the structure (adding of fields can change) I decided against appending all the data to one Access db. [Adding to an Oracle or other sql db is not possible at this time, maybe later...]
db Access 2000
Ultimately 12 linked dbs to one Admin db
I have Union queries that include the new month (when I receive it) for each table then I run my queries against the Union queries I built.
Basically the sql looks like this (Feb was our first month)
Each Month the code would add...
Where
[red]MMM YYYY[/red] for the month and year Apr 2006 etc and
[blue]m[/blue] would be 1-12 for the month...
when it was run (I would add variables etc where appropriate).
Any Ideas to automate, there are 14 to do each month every year. I hate to do it manually if I can code it once and pass a couple of variables.
Thanks in advance
Donald M
We receive our Nextel billing as an Access db and normally the info is only needed monthly and not as a union of the multiple months. Though lately I have had to compile multiple month data. I have an Admin db that I link the tables from the individual month's files (now 177MB each). Since the max db sizefor Access 2000 is 1GB and the structure (adding of fields can change) I decided against appending all the data to one Access db. [Adding to an Oracle or other sql db is not possible at this time, maybe later...]
db Access 2000
Ultimately 12 linked dbs to one Admin db
I have Union queries that include the new month (when I receive it) for each table then I run my queries against the Union queries I built.
Basically the sql looks like this (Feb was our first month)
Code:
SELECT *, "Feb 2006" AS [Month] FROM bill_clin_SAS2;
UNION ALL select *, "Mar 2006" as [Month] from bill_clin_SAS3;
Each Month the code would add...
Code:
UNION ALL select *, "[red]MMM YYYY[/red]" as [Month] from bill_clin_SAS[blue]m[/blue];
[red]MMM YYYY[/red] for the month and year Apr 2006 etc and
[blue]m[/blue] would be 1-12 for the month...
when it was run (I would add variables etc where appropriate).
Any Ideas to automate, there are 14 to do each month every year. I hate to do it manually if I can code it once and pass a couple of variables.
Thanks in advance
Donald M