[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-09-15
6
Medium Priority
?
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 85
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

649 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