473,406 Members | 2,867 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,406 software developers and data experts.

Autoload data at startup (from excel to access)

natalie99
Hello everyone

Progress on my project is going well, mostly thanks to everyone here's help :D

The last stage of the first stage (you know what I mean) is this:

I want to do either of the following:

a) create a Macro that runs at startup which will automatically load a file into my database and then run the final 4 queries and run the final macros which are 'Outputto' actions.

the file will always be the same name and format, and it needs to replace the data held in the already created table it will reside in, NOT add to the data.

or

b) create a form which allows me to do basically the same thing, although with the added benefit of having a BROWSE box where you can select which file to load (the file will still follow the template and need to replace the data in the table, not add to it).

Data file is called (approximately 45-50,000 lines by 60 fields)

LIVE.xls

Table for importing to is called

tblLIVEInventory

Final Queries

qryApprovedPayment

qryUnmatchedCID_R

qryUnmatchedCID_BT

qryMatchError

Macros

Export Unmatching Queries

Export Approved Payment Report

If anyone has any suggestions on the best option of a) or b) and a way to attack it please let me know!

Thanks :)

Nat
Mar 5 '08 #1
3 2614
MindBender77
234 100+
Hello everyone

Progress on my project is going well, mostly thanks to everyone here's help :D

The last stage of the first stage (you know what I mean) is this:

I want to do either of the following:

a) create a Macro that runs at startup which will automatically load a file into my database and then run the final 4 queries and run the final macros which are 'Outputto' actions.

the file will always be the same name and format, and it needs to replace the data held in the already created table it will reside in, NOT add to the data.

If anyone has any suggestions on the best option of a) or b) and a way to attack it please let me know!

Thanks :)

Nat
It might be easier to link this Excel file directly into your data base (Linked Table). Then, using a macro, run a delete query to delete all records form your original table and then an append query that adds the data from your linked table to your original table.

The easiest way to do what you ask is just link the file directly from data base and run your queries against it. This way you won't have to keep updating the table manually or using macros.

Bender
Mar 5 '08 #2
thanks for the tip, this does indeed sound quite easy and solve my problem!

although i wish i knew that earlier! the table in question is the very first in a line of about 35 queries and 10 or so macros, if I change the name my outputs will all become Expr: 'blah'

any ideas how to overcome the name change problem?

thanks millions!

nat :)
Mar 6 '08 #3
MindBender77
234 100+
thanks for the tip, this does indeed sound quite easy and solve my problem!

although i wish i knew that earlier! the table in question is the very first in a line of about 35 queries and 10 or so macros, if I change the name my outputs will all become Expr: 'blah'

any ideas how to overcome the name change problem?

thanks millions!

nat :)
You could try adding a 1 to the end of your original table's name and then name your link table the same as the original, not including the 1. This might fix the problem. If it doesn't, then you could simply remove the 1 from the name of the original table.

Bender
Mar 6 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: CompGeek | last post by:
Hi there, I am trying to load a file with 1729 records into a DB2 UDB EEE 7.1 DataBase (on AIX 4.3) which is across two partitions. The partitioning key is BI_INSTITUTIONAL_KEY which is a BIGINT...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
6
by: William Bradley | last post by:
I have been working with Access 2000 and decided to get the Switchboard to come up at startup. So I went to Tools/Startup and began messing around and got messed up. In Access 97 when...
4
by: John Baker | last post by:
Hi: I know MDM.EXE (Machine debug manager) is important in debugging scripts, and that it is installed with MS office. However does it have to be on the startup menu? That is, does it have to be...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
11
by: Hi5 | last post by:
Hi, I am new to access I usedto work in Oracle and Mysql. I am after a way that enables me to populate a database I designed in access with lots of data which can be sorted in excel sheets, ...
0
by: Grip | last post by:
Hi, I have gone throught the group and Microsoft's online help and have seen many suggestions but I am still seeking clarity: 1. I have an excel spreadsheet. Column A contains text that may...
2
by: teresaeiben | last post by:
I'm changing from excel to using an html page to open tons of db at work. After reading tons of posting about this subject, for simplicity sake I need the code to run on startup, to change the...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.