I just inherited a report generating ACCESS database

Ask the few things google does not know

Moderator: Dictators in Training

Post Reply
Tikker
NT Legend
NT Legend
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

I just inherited a report generating ACCESS database

Post by Tikker »

and I know fuck all about access really


the dude has a query of a seperate db dumping shit into excel files, which are then brought into the access DB via the import external data function


i think it's lame because according to his documentation, you have to import a xls for every single day


is there a way to batch job it?
Zanchief
Chief Wahoo
Chief Wahoo
Posts: 14532
Joined: Sun Jul 04, 2004 7:31 pm

Post by Zanchief »

Why is he exporting it into Excel?

Just cut excel out of that shit and import it directly.
Tikker
NT Legend
NT Legend
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Post by Tikker »

Zanchief wrote:Why is he exporting it into Excel?

Just cut excel out of that shit and import it directly.


I'm not sure atm to be honest

He's using an db query tool (Brio Intelligence) to grab stuff daily from an alarm collection database, and dumps that to excel

I think the limitation is that Brio won't talk to Access
User avatar
Gidan
Admin Abuse Squad
Admin Abuse Squad
Posts: 2892
Joined: Tue Jan 04, 2005 11:01 am

Post by Gidan »

Do you happen to have the time and experience to rewrite it? Why type of DB is it pulling the data out of? With C# or VB you could probably easily pull the data from the original DB and update access directly. This could automate the process and take excel out the mix completely.
For to win one hundred victories in one hundred battles is not the acme of skill. To subdue the enemy without fighting is the acme of skill.
Naethyn
NT Traveller
NT Traveller
Posts: 2085
Joined: Wed May 04, 2005 12:13 pm

Post by Naethyn »

is it using odbc
Maeya wrote:And then your head just aches from having your hair pulled so tight for so long...
Tikker
NT Legend
NT Legend
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Post by Tikker »

gidan wrote:Do you happen to have the time and experience to rewrite it? Why type of DB is it pulling the data out of? With C# or VB you could probably easily pull the data from the original DB and update access directly. This could automate the process and take excel out the mix completely.


2 of the databases are Oracle, the 3rd is Sybase

pert of the issue is that I'm restriced to the "Standard Operating Environment" tools that the IT department has allocated our group(brio, excell, access) as well as partly constrained by the job description~

maybe an easy fix would be just to concatenate all the dailies into just 1 big .csv
User avatar
Lyion
Admin Abuse Squad
Admin Abuse Squad
Posts: 14376
Joined: Wed Mar 10, 2004 1:42 pm
Location: Ohio

Re: I just inherited a report generating ACCESS database

Post by Lyion »

Tikker wrote:and I know fuck all about access really


the dude has a query of a seperate db dumping shit into excel files, which are then brought into the access DB via the import external data function


i think it's lame because according to his documentation, you have to import a xls for every single day


is there a way to batch job it?


The reason he's probably going to Excel is it's cleaner for the Access import.

I'm of the opinion if it isn't broke, don't fix it. Depending on how you want to schedule it, it shouldnt be too tough to automate it, even without changing a thing.
What saves a man is to take a step. Then another step.
C. S. Lewis
Tikker
NT Legend
NT Legend
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Post by Tikker »

well, that's what I'm asking


how do I automate the import of the excel worksheets into Access?
User avatar
Lyion
Admin Abuse Squad
Admin Abuse Squad
Posts: 14376
Joined: Wed Mar 10, 2004 1:42 pm
Location: Ohio

Post by Lyion »

The easiest way is just to use VBA for your imports like

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Import Spec", "c:\File name", True

Naethyn seems to be a Windows dude. See if he can help
What saves a man is to take a step. Then another step.
C. S. Lewis
Post Reply