| re: Help please with importing data from xls.
"OM" <lepperrj@loxinfo.dot.co.th> wrote in message
news:c8id67$d8g$1@news.loxinfo.co.th...[color=blue]
> I have 3 tables tblFI, tblFIDet, tblMac, in Access 2000
>
> tblFI
> fldFIAuto, autonumber,
> fldDate, date
> .and a few more fields that don't matter.
>
> tblFIDet
> fldFIDetAutoID, autonumber
> fldFIAutoID, linked to tblFI.fldFIAutoID
> fldMacAutoID, linked to tblMac.fldMacAutoID
> fldLitres, number
> fldMeter, number
>
>
> tblMac
> fldAutoID, autonumber
> fldMacNumber, number
> .and a few more fields that don't matter.
>
> The database gathers fuel consumption figures, and generates reports such[/color]
as[color=blue]
> fuel economy, total km, total litres, etc, for various time periods.
>
> The data comes from several sites, where it is entered in XL spreadsheets,
> in a table, 4 columns as below :
>
> Date - Truck Number - Litres - Meter.
>
> How do I go about getting this spreadsheet info into the database. I know
> that I could change all the sites to using Access, and have a partial
> replica setup (I'm not sure how to do that, but I could work that one[/color]
out),[color=blue]
> but there is a lot (several years) of legacy data in spreadsheets, that
> should go into the database.
>
>
>
> Thanks for any help
>
>
>
> Rob Lepper
>
>[/color]
I am not sure how far along you are but I would use the
DoCmd.TransferSpreadsheet acImport command behind a button on a form
it will let you import an xls spreadsheet into access.
then from there use your sql statements to create, update, append your
tables
Sorry this is very general. |