Solved

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

Posted on 2004-09-15
6
297 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

861 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