ASE, SQL, OLE, ADE

Reply
*Brinkerhoff, David
Message 1 of 2 (66 Views)

dbconnect and excel files

66 Views, 1 Replies
12-02-2002 11:24 PM
I am trying to create a data link file from a excel spreadsheet and it is
not working. I can get it to come up in the dbConnect manager but all the
table buttons are grayed out. Am I doing something wrong or do I have to
format my spreadsheet differently. I have opened a couple of the sample
files but they all use Access files and not Excel files.
*Fleming, Jon
Message 2 of 2 (66 Views)

Re: dbconnect and excel files

12-03-2002 08:20 PM in reply to: *Brinkerhoff, David
It's difficult to tell if you are doing something wrong without knowing
what you did. How did you set up your Excel spreadsheet? How did you set
up the data link form AutoCAD?

From the documentation of a library I wrote:

You must set aside an area in which the data is to be kept. This may be an
area in a worksheet that also contains other information, but it is
preferable to put the data in a worksheet of its own and put any formulas
that refer to that data in another worksheet.

Excel does not report the type of the data to the database driver. The
database driver must scan a part of the data area to determine whether the
data is numbers, text strings, dates, or whatever. Although it does not
affect the database driver, it is a good idea to format the columns with
the appropriate data type just for visual presentation,
It is possible but very difficult to work with the data without assigning
names to the columns. It is definitely best to format the first row of the
data area as text and enter column names in that first row.

You may enter data in the appropriate places in Excel if you wish. Never
enter formulas in the data area.

Assign a "table name" to the data area, which will be the name that you
will use in your SQL statements where the table name goes. Highlight the
column names and at least one row's worth of the cells below them
(including all data you have pre-entered). Pick "Insert" "Name" "Define"
and enter a name. (Note: You can check on your version of MDAC using the
Component Checker available at http://www.microsoft.com/data, or you can
update your MDAC from the files at that site. If you are using MDAC 2.5 or
later, the named area will expand automatically when you add new data
through SQL. If you are using MDAC before 2.5, you must highlight the
entire area that you will be using for data, now and in the future).

--
jrf
Member of the Autodesk Discussion Forum Moderator Program
Please do not email questions unless you wish to hire my services

In article , David
Brinkerhoff wrote:
> I am trying to create a data link file from a excel spreadsheet and it is
> not working. I can get it to come up in the dbConnect manager but all the
> table buttons are grayed out. Am I doing something wrong or do I have to
> format my spreadsheet differently. I have opened a couple of the sample
> files but they all use Access files and not Excel files.
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community