I just inherited a report generating ACCESS database

Ask the few things google does not know

Moderator: Dictators in Training

I just inherited a report generating ACCESS database

Postby Tikker » Tue May 30, 2006 8:16 am

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?
Tikker
NT Legend
NT Legend
 
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Postby Zanchief » Tue May 30, 2006 8:23 am

Why is he exporting it into Excel?

Just cut excel out of that shit and import it directly.
User avatar
Zanchief
Chief Wahoo
Chief Wahoo
 
Posts: 14532
Joined: Sun Jul 04, 2004 7:31 pm

Postby Tikker » Tue May 30, 2006 8:36 am

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
Tikker
NT Legend
NT Legend
 
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Postby Gidan » Tue May 30, 2006 8:55 am

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.
User avatar
Gidan
Admin Abuse Squad
Admin Abuse Squad
 
Posts: 2892
Joined: Tue Jan 04, 2005 11:01 am

Postby Naethyn » Tue May 30, 2006 8:58 am

is it using odbc
Maeya wrote:And then your head just aches from having your hair pulled so tight for so long...
User avatar
Naethyn
NT Traveller
NT Traveller
 
Posts: 2085
Joined: Wed May 04, 2005 12:13 pm

Postby Tikker » Tue May 30, 2006 9:12 am

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
Tikker
NT Legend
NT Legend
 
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Re: I just inherited a report generating ACCESS database

Postby Lyion » Tue May 30, 2006 9:15 am

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
User avatar
Lyion
Admin Abuse Squad
Admin Abuse Squad
 
Posts: 14376
Joined: Wed Mar 10, 2004 1:42 pm
Location: Ohio

Postby Tikker » Tue May 30, 2006 10:27 am

well, that's what I'm asking


how do I automate the import of the excel worksheets into Access?
Tikker
NT Legend
NT Legend
 
Posts: 14294
Joined: Tue Mar 09, 2004 5:22 pm

Postby Lyion » Tue May 30, 2006 10:41 am

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
User avatar
Lyion
Admin Abuse Squad
Admin Abuse Squad
 
Posts: 14376
Joined: Wed Mar 10, 2004 1:42 pm
Location: Ohio


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 22 guests

cron