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

how can you tell in advance which table's record will be deleted?

MLH
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 design the query so that you
KNOW in advance which table a
record will be deleted from.
Jun 27 '08 #1
2 1596
In article <bs********************************@4ax.com>, MLH
<CR**@NorthState.netSun, 1 Jun 2008 15:44:10 writes
>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 design the query so that you
KNOW in advance which table a
record will be deleted from.
The relationship is usually one-to-many. It is the "many" side that is
deleted.

I don't think you can design the query to chose that the "one" side is
deleted.
--
Les Desser
(The Reply-to address IS valid)
Jun 27 '08 #2
MLH
On Sun, 1 Jun 2008 22:38:02 +0100, Les Desser
<Ne*******@dessergroup.comwrote:
>In article <bs********************************@4ax.com>, MLH
<CR**@NorthState.netSun, 1 Jun 2008 15:44:10 writes
>>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 design the query so that you
KNOW in advance which table a
record will be deleted from.

The relationship is usually one-to-many. It is the "many" side that is
deleted.

I don't think you can design the query to chose that the "one" side is
deleted.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OK. Lemme stew on that for a while. Thx.
Jun 27 '08 #3

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

Similar topics

0
by: Stephen Crowley | last post by:
Are there any known issues with table corrouption on 4.0.14-standard-log? I'm getting recurring problems with a single table becoming corrupted, does mysql handle disk full problems gracefully or...
28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
4
by: Mike Dole | last post by:
I might have taken a wrong turn trying to do an update on a database the way I did but maybe somebody can help me out cause I'm stuck.. I have to update 12 tables in a database in a client...
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...
1
by: Ardith via AccessMonster.com | last post by:
Hi, I am running Access 2000. I have an application with a web-based front end which accesses an Access back end using ASP (not .Net). It is being used by two groups of people - identical...
3
by: PAUL | last post by:
Hello, I have 2 datasets I am trying to update. The parent table seems to update fine but when I go update the chiled table I get an error message that says I need a related record in the parent...
1
by: Roberto La Forgia | last post by:
Hi all, there is a utility o procedure to recovery deleted record from a Access table (versione 2002/2003) ? Thanks in advance Roberto
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
9
by: Oonz | last post by:
Hi Friends, How can we insert records in sorted order like consider a table No Name Phone 1 test1 12345 1 test1 23455 2 test2 68638
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.