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.fldFIAuto ID
fldMacAutoID, linked to tblMac.fldMacAu toID
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 as
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 out),
but there is a lot (several years) of legacy data in spreadsheets, that
should go into the database.
Thanks for any help
Rob Lepper 2 1384
"OM" <le******@loxin fo.dot.co.th> wrote in message
news:c8******** **@news.loxinfo .co.th... 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.fldFIAuto ID fldMacAutoID, linked to tblMac.fldMacAu toID 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
as 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
out), but there is a lot (several years) of legacy data in spreadsheets, that should go into the database. Thanks for any help Rob Lepper
I am not sure how far along you are but I would use the
DoCmd.TransferS preadsheet 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.
The first thing that came to my mind, is linking the excel sheets to
the dbase and using that data as a table. To do that, you need to go
into access and in the tables menu, just right click and select link
tables.... then find the spreadsheet and go from there.
Or you can just copy and paste into a dbase, but that might take some
time. If you need more help just email me back.
Paul This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jack |
last post by:
I have a text file of data in a file (add2db.txt) where the entries are
already entered on separate lines in the following form:
INSERT INTO `reviews` VALUES("", "Tony's", "Lunch", "Great atmosphere.
Good food.", " (Harry Houdini - 03/01/2004)");
INSERT INTO `reviews` VALUES("", "Le Chow Place", "Lunch", "yada yada",
" (Herbert Hoover - 03/03/2004)");
INSERT INTO `reviews` VALUES("", "Golden Dragon", "Lunch", "Exquisite.
|
by: serge |
last post by:
Using some VB sample code on the Internet I have the following
that works well and exports a set of records to an XML file:
Dim oCmd, sSQL, oDom
Set oDom = CreateObject("Msxml2.DOMDocument.4.0")
Set oCmd = CreateObject("ADODB.Command")
oCmd.ActiveConnection = "Provider=SQLOLEDB;Data Source=(local);Initial
Catalog=TestXML;UID=sa;Password=123456"
|
by: Richard Holliingsworth |
last post by:
Hello:
Thanks for your quick response.
I'm trying to import a new Excel file into an A2K table and it's
truncating the data. One of the Excel columns is a text field that can
be up to 2000 characters. When I import it into A2K, that field is
truncated. If I try to inport the file into an EXISTING table that I
define myself where that field is a MEMO field, the import crashes.
|
by: tym |
last post by:
HELP!!!
I'm going round the twist with this...
I have a VB6 application which is using DAO to access a database
(Please - no lectures on ADO, I know what I'm doing with DAO!!)
Ok, problem is this....
importing a large csv file (189000 lines, 7 fileds per line)
|
by: ccr |
last post by:
Please view in a text editor so that the columnar text lines up. I
used Terminal 9pt font to compose this post and copied/pasted to my
newsreader program.
I am writing in the hope that one of you Visual Basic experts may
provide a solution, or at least some insight, to the problem described
below. I am not a programmer, but am fairly knowledgeable about
computers. If necessary, I could flowchart a process to do what needs
to be done....
| |
by: ccr |
last post by:
Reposted with a longer line length. Apologies if I did not cancel the 1st attempt before you got
it.
If necessary, please view in a text editor so the columnar text lines up. I used Terminal 9pt font
to compose this post and copied/pasted to my newsreader program.
I am writing in the hope that one of you Visual Basic experts may provide a solution, or at least
some insight, to the problem described below. I am not a programmer, but...
|
by: Edward S |
last post by:
I budget for a Project in an Excel sheet as illustrated below. The
months below are usually a 2 year period i.e. 24 months, though it
could be over 24 months depending upon a Project. I then need to
input this in an Access database, where I do a comparison with the
Actual cost. The table “TblBudget” in Access is made of 4
fields, namely: (1) CostElement (2) CostCenter (3) Month (4) Amount$.
At the moment this method is very cumbersome....
|
by: cheryl |
last post by:
I am relatively new to programming in Access for a multi user
environment, and am having trouble figuring out if there is a way to
accomplish one of our user requests.
I am working on a multi user Access 2002 application. BE db resides on
a LAN, FE on each client. The app imports large .csv files containing
billing info by date and allows users to run various reports. At a
given time, one user may be importing a file into the main...
|
by: Timothy Shih |
last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I
wrote a simple function which takes in 2 buffers (one a byte buffer, one a
char buffer) and copies the contents of the byte buffer into the character
pointer. The code looks like the following:
#include <stdio.h>
#include <stdlib.h>
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
|
by: cuties |
last post by:
Hi all....
i'm very new to this programming language. i'm required to fulfill this task in the company i'm doing my practical. i hope i can get guide for my problem...
Here is the script i already wrote but i'm having problem to move forward.
my problem is :
1. how do i assign each checkbox to have equal value with the value of the d_id?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |