Solved

Can I update a linked table on an iSeries using MS Access?

Posted on 2004-09-15
6
295 Views
Last Modified: 2008-02-26
Hi all,

I have set up a query and form to 3 linked tables on an iSeries. (using iSeries Access ODBC Driver v9.00.02.02 and Access 2003)

I would like to give the people using the form the ability to edit just one of the fields in one of the tables.

I've done some looking around the net and found a few tutorials that make this process seem so easy but...

no matter what I do I can't seem to type into the field.

Does anyone have step by step instructions on how to do this?

I'm not sure if this is a very difficult process, I'm not an expert at Access so it's all a mystery to me.

I'll give 500 points for a way of doing this that a guy who typically writes in crayon can follow.

Thanks in advance for your help.
0
Comment
Question by:1eyed
6 Comments
 
LVL 84
ID: 12070584
Assuming an "iSeries" is an server of some sort ???

What's your query? If your query is updateable, you can simply include the field on your form and your user will be able to update it. If your query is NOT updateable, then you'll have to rewrite your query. A query which contains aggregate functions (SUM, AVG, etc) isn't updateable, and a query containing GROUP BY is not updateable.

Post the SQL behind the query ... open the Query in design view, select View - SQL and copy/paste all that here.
0
 
LVL 9

Expert Comment

by:tmharvey
ID: 12070904
Also your users will need to have write access to the iSeries datasource. Typically ODBC links are read-only
Cheers...Terry
0
 

Author Comment

by:1eyed
ID: 12076449
Sorry about that. An iSeries is the new name for an IBM AS/400.

I think the query is very simple, just pulling some information from the tables. Here is the SQL:

SELECT R37FILES_VCOHEAD.OAFOBP, R37FILES_VCOHEAD.OAENTR, FDS_FDSHEAD.FDUSER, FDS_FDSHEAD.FDCRDT, FDS_FDSHEAD.FDITD1, FDS_FDSPDREQ.RQMO, FDS_FDSPDREQ.RQQTY, FDS_FDSPDREQ.RQITEM, FDS_FDSPDREQ.RQCRDT, FDS_FDSPDREQ.RQCOMM, FDS_FDSHEAD.FDNOTE
FROM (R37FILES_VCOHEAD INNER JOIN FDS_FDSHEAD ON (R37FILES_VCOHEAD.OAORD = FDS_FDSHEAD.FDSO) AND (R37FILES_VCOHEAD.OABOCD = FDS_FDSHEAD.FDSOBACK) AND (R37FILES_VCOHEAD.OACMP = FDS_FDSHEAD.FDCMP)) INNER JOIN FDS_FDSPDREQ ON (FDS_FDSHEAD.FDSO = FDS_FDSPDREQ.RQSO) AND (FDS_FDSHEAD.FDSOBACK = FDS_FDSPDREQ.RQSOBACK) AND (FDS_FDSHEAD.FDMO = FDS_FDSPDREQ.RQMO);


The table/column that I am trying to write to is FDS_FDSHEAD.FDNOTE

The ODBC connection type is set to: Read/Write (All SQL statements allowed) I don't know if that makes any difference.


Thanks for the input so far.
0
 

Author Comment

by:1eyed
ID: 12137303
Hi again,

Came up with a temporary solution. By modifying my report to only use one table and I can now write to it.
The people using the reports open the original report to view the data and have a second window open with the 2nd report to modify the needed field.

Kinda cheesy but it works for the moment.

Another thing I found is this article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;304179&Product=acc2003

I'm not quite sure how to do that on the iSeries but will keep you updated as to the progress.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14147975
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now