473,387 Members | 1,520 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,387 software developers and data experts.

Bring in an Excel file

I have a monthly Excel file that I have to open in Excel, perfom some
sorts and deletes, then create some equations on what remains. I know
that I could speed things up by running an Access query on the data
instead. Is there a way I can create an option so that I can browse
for the file in order to bring it into Access, then automatically kick
into an import? If I could do this then I could eliminate the steps of
importing it through the import wizard. Then hopefully I can tie it
together with the query making it kind of a one step solution.
Thanks very much.

Apr 2 '07 #1
1 1219
On 2 Apr 2007 14:26:14 -0700, Cardinal wrote:
I have a monthly Excel file that I have to open in Excel, perfom some
sorts and deletes, then create some equations on what remains. I know
that I could speed things up by running an Access query on the data
instead. Is there a way I can create an option so that I can browse
for the file in order to bring it into Access, then automatically kick
into an import? If I could do this then I could eliminate the steps of
importing it through the import wizard. Then hopefully I can tie it
together with the query making it kind of a one step solution.
Thanks very much.
If it's always the same Excel file, you can use the
DoCmd.TransferSpreadsheet method to import or link to the spreadsheet
and range.
Then you can use the table in your query as you would any other table.

If you need to browse for the file, you can find the code needed at:
http://www.mvps.org/access
look in the API section.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Apr 3 '07 #2

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

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
2
by: PrinStation | last post by:
I am looking to import data from Excel to Access. The data is set up in one Excel file, but on 12 (monthly) sheets. After importing the first month/sheet (which I did successfully), I was looking...
1
by: mail2atulmehta | last post by:
Hi, I do not know if this is right place for this, but i need some help. I have a text file, whose values are seprated by a delimiter. I want to open this file in excel, ( not import it) . I have...
22
by: cj | last post by:
My program checks to see if another program is already running and if so I want it to "restore" as windows puts it that other program so it appears on top of anything else on the screen. I know...
0
by: Carl via AccessMonster.com | last post by:
When I open up Excel, I'm trying to bring in data from the other file. It says, "cannot import data at this time." There's a button there that when I click on it it does not do anything. ...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
4
by: Neekos | last post by:
I have a button that opens up an excel sheet, and prompts them with an input box asking which row of data they want to import. Problem is, once the excel sheet is opened, the input box gets hidden...
1
by: farhana | last post by:
Hi experts, Need ur help and advice, My excel file is for user to upload their product listing. I have created a macro programming in the excel file. To use the file, user need to download...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.