473,406 Members | 2,312 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,406 software developers and data experts.

One-to-One table / "related record required" - HELP

Okay - apologize in advance for the length, but I want to make sure
all you knowledgeable and helpful people have all the details you need
to hopefully point my newbie rear in the right direction.

I've got a fairly complex (a lot more complex than originally
intended) database with three main tables. The database is designed
to track information about certain files. The tables are set up with
one to one relationships, primarily because one of the tables contains
a number of memo fields, and I was getting a number of corruption
errors before I seperated the memo fields. I recently added the third
"one-to-one" table, because it contains certain details that are
non-confidential so I wanted a table everyone could access, plus it
makes it alot easier for me to manipulate (rather than deal with 50 +
fields in one table)

The tables and primary/foreign keys are set up thusly:

[Cases] [Cases-memos] [Cases-Details]
-------- -------------- ----------------
[CARecID] <----> [CAMRecID]
[CARecID] <--------------------------> [CADRecID]

[Cases].[CARecID] is the primary key (an autonumber field)
[Cases-memos].[CAMRecID] is a foreign key (number, long)
[Cases-details].[CADRecID] is a foreign key (number, long)

One-to-One Relationships have been defined, with cascading update and
delete.

Anyways, my database is split into a front and back end, with the back
end residing on a network server (Novell). Two main people in my
office use the DB - myself (via a Windows XP machine) and an assistant
(via Windows NT). The assistant does most of the data entry, while I
just review data.

For some time, adding new cases was done via a form, which called data
from a query combining two tables. The vast majority of the info to
be input resided in the [Cases] table, with 3 memo fields residing in
[Cases-memos]. New cases could be added, and everything worked fine,
with the memos fields plugging data into a matching new record in the
[Cases-memos] table. I recently revised the form to also link data
residing in [Cases-details].

Since that revision, the form works perfectly on my machine - just
like the old one. If I create a new case in [Cases], corresponding
entries are created in [memos] and [details], and everything works
fine. HOWEVER, when my assistant tries to create new cases, she gets
an error reading "You Cannot Add or Change a Record Because a Related
Record is Required in Table 'Cases'".

I suspect the problem is the order in which new data is being saved to
the tables - Access probably needs to create a record in [Cases]
first, and for whatever reason is not doing this. I'm stumped as to
why it happens only on her machine, not on mine.

Any ideas ?

If there's some vb or macro way to make sure the tables are saved in
order and that new records are created sequentially in each of the
tables before saving the data, I'd really appreciate some help on how
to fix that.

j
Nov 12 '05 #1
0 3172

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

Similar topics

2
by: Louis1 | last post by:
I am just going crazy. I have a report that requires page totals. I got the report working, except that my page has ELEVEN records (ok), but the page total includes data on the TWELFTH record....
8
by: Bri | last post by:
Greetings, I'm having a very strange problem in an AC97 MDB with ODBC Linked tables to SQL Server 7. The table has an Identity field and a Timestamp field. The problem is that when a new record...
0
by: nassim.bouayad.agha | last post by:
Unique table version record Hello, I am using a table record to store informations about database dump,I use this table : CREATE TABLE dump_version( count BIGINT unsigned NOT NULL DEFAULT 0,...
5
by: MN | last post by:
Hello, I have a customer table and another table that I need to prepopulate with special customer IDs, unique and not sequential. Is there a way to configure Access to assign the customer ID to...
1
by: Bernard Dhooghe | last post by:
The documentation (Administrative API Reference, 8.2, PDF format) says page 520: "The rest of the record is dependent upon the record type and the table descriptor record defined for the table."...
2
by: Maximus | last post by:
I need some help. I have an .asp page that interfaces with an Access table (wjs_SuperInput). The .asp page looks to the table and pulls a recordset based on a job number, 12345, and a weekending...
4
by: prosad | last post by:
hello, Just solved a problem using Javascript onclick, can click on any cell in a dynamic table and it will pass the innerText object value to my form text field. parts of code given below: ...
1
by: kotresh | last post by:
In my sql how to get the previous record value... in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know...
3
by: Dilip1983 | last post by:
Hi, I am new to the concept of PL/SQL Collection. Please give me an idea/Link from which i can easily understand the difference between PL/SQL table and Record Type. Thanks in Advance. Dilip
1
by: MLH | last post by:
Put 2 tables in a qbe grid & link 'em so as to list only records in tblA that have related records in tblB. Run the query. HiLite a row. Press delete key. A record is deleted. How can you...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.