473,396 Members | 1,738 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.

How do I update Access table fields from Excel file

I know this can be down, I'm just not sure where to begin.

I have a table with fields [quote#, salesagent, year, close,status], basically I am using Access to manage sales proposals. I export out to Excel a report query based on salesagent. I send this to each salesagent for updating.

Now I have the returned Excel file from the different salesagents. How do I import or update my original table fields with the new information from the Excel files?

Thanks.
Attached Images
File Type: jpg screencapture.jpg (59.6 KB, 292 views)
May 20 '11 #1
3 1936
TheSmileyCoder
2,322 Expert Mod 2GB
There are quite a few ways it can be done, ranging from a simple export to coding a open and read from the excel. It depends on the layout of the excel sheet. Could you provide an example (screenshot for instance) of your excel sheet?
May 20 '11 #2
SmileyCoder,
I just posted the screen capture. Basically, I'm trying to find a relatively easy way to import and update the table fields with new data from the saleperson. I've been reading about Append Queries but I really need to just start with the basics first. Your help is appreciated.
May 20 '11 #3
TheSmileyCoder
2,322 Expert Mod 2GB
If the "area" you want to export from within the excel sheet is a named range, I believe you can import just that using:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "[TableToImportTo]", "Path to File",,"NameOfRange" 
Now this just puts the records into a table. From here you would have to run an update query to update the original records.
May 20 '11 #4

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

Similar topics

1
by: DeSorrow Golden | last post by:
How would I go about creating a macro to update an Oracle table using Excel?
7
by: Keon | last post by:
Hoi, I'm using a database with alot of records in 1 table (more than 3000). If i want to export this table to excel i only get it till record 2385. Do someone know how i can solve this...
1
by: Pierre Maricq | last post by:
Hi, I am using Win2000 and Access2000. I need to build build a macro or write a VBA in Access that would screen all files contained in a directory on my C drive (files are structrured DAT...
1
by: john_liu | last post by:
How can I update an Access table based on a sheet in Excel by VBA in excel. Thanks
3
by: bwhite | last post by:
I have a temp table with one row of data that I need to export into Excel. I created the export to create the xls file as follows ... Dim FileName FileName = !! DoCmd.SetWarnings False...
8
by: LimaCharlie | last post by:
Hi, Question pls. I have an MS SQL local package where it exports data from SQL table to Excel file. My question is, how can I erase all the records in my excel file before i export the new data...
3
by: CCECIL | last post by:
Hello all, I am new to VBA and I am not very good at it. I have chosen to learn VBA for this simple reason...I can't figure out how to export an Access table into a formatted excel document. ...
3
by: Shailesh Patel | last post by:
Hi, How do I export Html table to excel file? Thank you in advance. Shailesh
3
by: sarah2855 | last post by:
Hello All, I'm looking for the vb code that export an access table to specific worksheet in Excel. I tried to search see if this question was answered before here, but didn't find anything that...
4
by: Kelly Warden | last post by:
I want to create a form in Access to update my table automatically with the information selected from combo boxes, lists, comments, etc. Also, I want to automate this w/ some VBA or SQL or...
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...
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
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
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.