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

Importing data from excel via command button on a form.

When importing excel from access I am fully aware that one can import
directly into a table. Can you get as specific via code or something
to import data from an excel sheet to a FORM (Not Table) through a
command button. For example: cell C5 on the selected excel spread
sheet = textbox2 in the current form.

This is for a service repair type database. The service technicians
work out in the field and currently create their service orders on an
excel spreadsheet which looks pretty for the customer but is not
nicely organized and table import friendly.

I would like for the user to be able to click on a command button and
import from the selected repair orders.

Is this even possible?

Thank you!
Nov 12 '05 #1
2 1698
sl********@hotmail.com (Mr. Bungle) wrote in message news:<ab************************@posting.google.co m>...
When importing excel from access I am fully aware that one can import
directly into a table. Can you get as specific via code or something
to import data from an excel sheet to a FORM (Not Table) through a
command button. For example: cell C5 on the selected excel spread
sheet = textbox2 in the current form.
I think the best you can do is import the record and then go to it. A
form does not *hold* data, but just contains it. What I mean is that
a form cannot store data - only a table can.
This is for a service repair type database. The service technicians
work out in the field and currently create their service orders on an
excel spreadsheet which looks pretty for the customer but is not
nicely organized and table import friendly.

I would like for the user to be able to click on a command button and
import from the selected repair orders.

Is this even possible?

Thank you!


Import selected data? Umm... if you link to the spreadsheet and use
the spreadsheet (or a few of the columns) as the rowsource for a
multi-select listbox, maybe. then the user could select the records
he wants to import from the linked SS and import those... other than
that, I don't know how to do it...
Nov 12 '05 #2
You can "automate" Excel from Access.

The easiest way is to add a reference to Excel to your mdb.
Then you can do something like this:
(WARNING: AIR CODE!)
Dim XL as new Excel.Application
XL.Workbooks.Add "C:\Spreadsheets\MyData.xls"
Me.Textbox2=XL.ActiveWorksheet.Range("$C$5")

There are a bunch of gotchas in this approach, so if you're serious about
it, I'd suggest you find some training in Automation.

HTH
- Turtle

"Mr. Bungle" <sl********@hotmail.com> wrote in message
news:ab************************@posting.google.com ...
When importing excel from access I am fully aware that one can import
directly into a table. Can you get as specific via code or something
to import data from an excel sheet to a FORM (Not Table) through a
command button. For example: cell C5 on the selected excel spread
sheet = textbox2 in the current form.

This is for a service repair type database. The service technicians
work out in the field and currently create their service orders on an
excel spreadsheet which looks pretty for the customer but is not
nicely organized and table import friendly.

I would like for the user to be able to click on a command button and
import from the selected repair orders.

Is this even possible?

Thank you!

Nov 12 '05 #3

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

Similar topics

4
by: Martin | last post by:
There is an Access table on the network. 15 users who do not have Access are connected to the network. Is there a way for each user to be able to enter one or more rows containing 3 or 4 columns to...
11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
9
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...
2
by: Mr. Bungle | last post by:
When importing excel from access I am fully aware that one can import directly into a table. Can you get as specific via code or something to import data from an excel sheet to a FORM (Not Table)...
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...
2
by: Sara | last post by:
Hi - I've been reading the posts for a solution to my query, and realize that I should ask an "approch" question as well. We receive our production data from a third party, so my uers import...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
9
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
4
by: ALaurie10 | last post by:
I am somewhat familar with access, but have no clue to modules and coding. I am trying to develop code or a module that will enable a user to import a specific excel spreadsheet and its' data into a...
2
DAF LAD
by: DAF LAD | last post by:
Hi all, I have been running a database in Access 2003 for may years now. One of the update functions that I do imports an excel spreadsheet into a table in my database. I have this...
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
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
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...
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
agi2029
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,...

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.