Solved

AS400/Access 2007 Table relationships

Posted on 2012-03-16
1
515 Views
Last Modified: 2012-03-22
I work with files on an AS400. I have no control over the file structure. As a simplified example, the AS400 file structure is:

Table Name: CUSTOMER

(k)ACCT#.....DECIMAL ........ (8.0)
   FName ....CHAR................. 30
   LName.....CHAR................. 30
   Date.........DATE................. 10

The Access 2007 file structure is:

Table Name: tblNOTICE

 (k)Index .............  AUTONUMBER...
(fk)NACCT# ...........DECIMAL............0
     NoticeDate ......DATE ................10

What I want to do is send out notices to delinquent customers. The demographic info (name, address, date of first order, etc) is stored on the AS400. I keep a separate Access database that I use to send out notices. I want to set up a form that prints a delinquent notice and records the date the notice was created. I want the [NACCT#] to be automatically populated with the [ACCT#] from the AS400 table to create a 0ne-to-many relationship with the AS400 file. The [NoticeDate] will be entered by the user.

The problem: When I try to create a One-To-Many Relationship between the AS400 and the Access table I do not have the option to select REFERENTIAL INTEGRITY. How can I get REFERENTIAL INTEGRITY between the two files automatically?
0
Comment
Question by:ergenbgr
1 Comment
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 37729805
<<When I try to create a One-To-Many Relationship between the AS400 and the Access table I do not have the option to select REFERENTIAL INTEGRITY. How can I get REFERENTIAL INTEGRITY between the two files automatically?>>

  RI only can be applied within the MDB container (the tables must be local to the MDB file).   But you really don't need that.  You can create a relationship without RI enforced.

Jim.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…
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…

895 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

19 Experts available now in Live!

Get 1:1 Help Now