473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Access Sql query to move data

Hi,
I am working on a database that was built for our operation, but the
only problem is that it has almost 2.6 million records in a table, so
it takes forever to run a report. I was wondering if there was a query
i could run that would remove certain records based on a date, ie
before may 2006 and add them to a different table, or database. Any
help is much appreciated.

Thanks,
zac

Jan 12 '07 #1
3 3085
You have answered your own question

Write a query that would move (add then delete) data from one table to
another.

<za********@gmail.comwrote in message
news:11*********************@a75g2000cwd.googlegro ups.com...
Hi,
I am working on a database that was built for our operation, but the
only problem is that it has almost 2.6 million records in a table, so
it takes forever to run a report. I was wondering if there was a query
i could run that would remove certain records based on a date, ie
before may 2006 and add them to a different table, or database. Any
help is much appreciated.

Thanks,
zac

Jan 12 '07 #2
za********@gmail.com wrote:
I was wondering if there was a query
i could run that would remove certain records based on a date, ie
before may 2006 and add them to a different table, or database. Any
help is much appreciated.
Hi Zac,

No offence intended, but your question means you know very little about
MS Access or databases in general. 8) Of course, that's why you're
asking here! Nonetheless, I would strongly NOT recommend you start
tinkering with such a resevoir of records and knowledge without some
more experience - you don't learn to fly jets (MS Jet pun intended)
starting off on stealth fighters - you start off on trainer aircraft.
You should be doing the same thing with your database, otherwise you are
putting the "memory" of your organization's transactions in jeoprody.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Jan 15 '07 #3
Really valid point. Maybe you want to start with a book on SQL as a
language, so that you can write some queries with relative ease, or
maybe just one of the MS Access training guides. I would also suggest
that if you want to play with this database, you make a copy of it
first, and play with the copy.

To SELECT certain records FROM a table or existing query WHERE a
condition is met is actually not so hard, and is probably the best
place to start. If you can limit the number of records that you have to
deal with then all then you are half way there.

When looking for a good source of information on MS Access and the Jet
database in general, I have found that the MS Press books are great
(Running MS Access, Building Applications with MS Access), and the
author John Viescas really knows his stuff and can explain it in plain
english.

The other part of achieving your goal is to be able to take that data
you have found (the limited set you have selected from the master set),
and use it to populate a table so that the next time you can simply ask
your queries to the smaller table. For this you need to know a bit more
about MS Access, and again a good book or course will help you a great
deal. Its not so hard to do, but you do need to know what you are
doing, and for that you need information.

This is the MS Press booklist with information on most all MS Press
Books:

http://www.microsoft.com/mspress/fin...ist/title.aspx

I hope this gets you on the way. I know it can seem a little daunting,
but dont fear, the learning curve is very quick and you should be able
to do what you want without spending too long learning it.

Cheers and good luck

The Frog

Tim Marshall wrote:
za********@gmail.com wrote:
I was wondering if there was a query
i could run that would remove certain records based on a date, ie
before may 2006 and add them to a different table, or database. Any
help is much appreciated.

Hi Zac,

No offence intended, but your question means you know very little about
MS Access or databases in general. 8) Of course, that's why you're
asking here! Nonetheless, I would strongly NOT recommend you start
tinkering with such a resevoir of records and knowledge without some
more experience - you don't learn to fly jets (MS Jet pun intended)
starting off on stealth fighters - you start off on trainer aircraft.
You should be doing the same thing with your database, otherwise you are
putting the "memory" of your organization's transactions in jeoprody.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Jan 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
2
by: SenseForAll | last post by:
First please note I am a novice at VBA and not even that experienced with DAO/ADO and MS-SQL. Any assistance is appreciated. That said... I have an application written in Access w/ VBA. I need to...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
4
by: sheree | last post by:
I have 3 tables (amoung a few others) in a small access database. The tables are as follows: == AEReport -------- AEID (PK) RptCatelog GCRCID PatientID EvntDate
6
by: Noozer | last post by:
We've created a new database and need to import the data from our old database. Both are MS Access databases and each have multiple tables. The table structure of each table is completely different...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
4
by: Bob Alston | last post by:
Some more, rather specific Access performance questions. IN a split front-end & back-end Access/Jet ONLY LAN situation, and with all query criteria fields and join fields indexed: 1. Is is...
3
by: VB.NET | last post by:
I'm using a mysql database and connecting my vb.net program to the DB over a network connection. i would like to bring this data over to a vb.net random access file. does anyone know how to...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
5
by: teddysnips | last post by:
Having upsized my client's back-end DB to SQL Server, the following query does not work ("Operation must use an updateable query"). UPDATE tblbookings INNER JOIN tblREFUNDS ON...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.