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

MS Access to AS400 problem..

Hello,

I'm still trying to get this to work.
I'm using Access tabledefs to connect to AS400. I need to refresh the
existing links to different AS400 machines (same tablenames). I need a
DSN-less ODBC connection (not ADO OLE DB) to AS400 from Access. My function
is somehting like this:

Public function ConnectMe() as string

dim db as dao.database
dim sConnect as string
set db = currentdb
sConnect = "ODBC;Driver={Client Access ODBC Driver
(32-bit)};System=MyAS400;Uid=MyID;PWD=MyPassowrd"
db.tabledefs("table1").connect = sConnect
db.tabledefs("table1").RefreshLink

End Function

When I execute this I get the error:

Reserved error (-7778); there is no message for this error.

Any suggestions???

Thank you.

Matthew Wells
MW****@FirstByte.net


Nov 13 '05 #1
1 4138
You will need to drop and recreate the tabledefs. Don't forget to set
the SourceTableName. See my comments in the thread

http://groups-beta.google.com/group/...55f783e029651c

Bill E.
Hollywood, FL

Nov 13 '05 #2

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

Similar topics

6
by: Niyazi | last post by:
Hi, We have and IBM AS400 and I belive the reional setting is Turkish. The IBM Client-Access for Windows that install in our PC (WIN XP SP2) set to Turkish characters. Now my PC has English...
0
by: CompDude | last post by:
Hi All I am trying to copy data from DB2 to SQL server using SQL Data Tranformation Services. I am able to do that by supplying AS400 username/password along with the iSeries DSN Name, at the...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
6
by: Daniel Santana | last post by:
Hi, could anyone help me? When I want to access AS400 database i use some code like the following: { string strDataSource = "128.2.2.2"; string strDBUser = "dbUser"; string strDBPass =...
4
by: Brad Allison | last post by:
I posted this to the adonet newsgroup and was recommended to post here. Thank you for any help: Okay, I need a bit of advice. I have an ODBC data adapter being filled by AS400 which is very...
5
by: Nathan Given | last post by:
Hello All, I've been struggling on and off for 3 months trying to connect to an DB2 database running on an IBM iSeries machine. I FINALLY figured out how to connect with Coldfusion (see...
0
by: mortenol | last post by:
Hi, I am trying to connect a MS SSIS package to an AS400/DB2 database, and I experience problem when I hit the "Create Package" button in the "Data Link properties window". I have understood that...
44
by: bloukopkoggelmander | last post by:
Hi all I am about to go mental on this side. All I want to do is to have a form where the user can enter/edit/delete a new/exisiting record and use Access's built in record navigation at the...
1
by: gitimaya | last post by:
Hi, I work in AS400 and UNIX platforms. Got a problem. I need to write a ftp application which would send a NON-AS400 file (IFS or flat file) from the AS400 box to the UNIX box. Can any one help...
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:
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
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...

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.