Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2005

Tip: Looking for answers? Try searching our database.

ODBC Iseries access - Record 1 contains too few data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Renzo_F - 27 May 2005 13:23 GMT
when i try to merge directly from Iseries as400 file in a word document I
receive the message: Record 1 contains too few data...etc. I use a ISERIES
ACCESS ODBC DRIVER (ver.10.00.03.00) OS400 ver. 5.3.0 Iseries Access
ver.5.3.0 on windows XP pro and Office 2002 SP3 (all fixes of windows and
office are installed). The same links works correctly between Iseries as400
and excel of the same office. Please help me...
Bye.
Renzo.
Peter Jamieson - 01 Jun 2005 12:01 GMT
My guess is that this is a security (login/password) issue. When you connect
from Word to the ISERIES, do you use MS Query? Do you have to enter a
login/password? If so, the problem is probably that MS Word "forgets" the
username and paassword later. If so, suggestions:
a. can you specify the username and password in the ODBC DSN for the
Iseries? If you cannot do it in a "user" or "system" DSN, try creating a
file DSN and adding the necessary parameters manually. Then try using that
.dsn when you start MS Query
b. use Word VBA and an OpenDataSource call to specify the necessary ODBC
connection information. This is not straightforward so you may need further
help. Unfortunately, I do not have an ISERIES here so cannot tell you
exactly what should be in the connection string.

Also, in both cases, you will be storing login/password information in a
rather insecure way, so be careful!

Peter Jamieson

> when i try to merge directly from Iseries as400 file in a word document I
> receive the message: Record 1 contains too few data...etc. I use a ISERIES
[quoted text clipped - 5 lines]
> Bye.
> Renzo.
Renzo_F - 01 Jun 2005 14:00 GMT
With Excel the ODBC drivers of Iseries access (old client access/400 or new
iseries access) works well and return me data correctly. In Word the
connection ask me for a password and i can choose the library/file. Then
appears a windows with all types of converters and odbc, but the iseries
access odbc doesn't appear and i must choose "Database file OLE DB", i know
the other types (mdb, xls, qy etc..). At this time appears "unable to open
data source" (unable - impossible in english version ??). Finish...

> My guess is that this is a security (login/password) issue. When you connect
> from Word to the ISERIES, do you use MS Query? Do you have to enter a
[quoted text clipped - 23 lines]
> > Bye.
> > Renzo.
Peter Jamieson - 01 Jun 2005 15:04 GMT
Yes, Excel is usually better than Word at connecting to data sources.

Try this:
 a. make sure you have an ODBC DSN for the ISERIES (Windows Start|Control
Panel|Administrative Tools|Data Sources (ODBC), or Windows Start|Control
Panel|Performance and Maintenance|Administrative Tools|Data Sources (ODBC)).
 b.In the Select Data Source dialog box, use the menu at the top right to
start MS Query. Select your DSN and take it from there. You may still get
problems with login and password, but I think you will get to the point
where you can see some data.

If you have Access, you could try another approach:
a. create a new Access database
b. create a table that is linked to the ISERIES datasource
c. use that table as the data source for the merge.

Peter Jamieson
> With Excel the ODBC drivers of Iseries access (old client access/400 or
> new
[quoted text clipped - 39 lines]
>> > Bye.
>> > Renzo.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.