Ok, again I have a form and a sub form. I have created a delete button on my form down in the footer of the main form. Now what I want this to do when clicked is delete BOTH the information in the main form and the information in the sub form. The help file is almost useless since it is so hard to navigate half the time. Thanks for the help in advance.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Delete Button w/ Subform (A2K)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Delete Button w/ Subform (A2K)
- This topic has 13 replies, 3 voices, and was last updated 22 years, 11 months ago.
Viewing 0 reply threadsAuthorReplies-
WSPaulK
AskWoody Lounger -
WSNight
AskWoody LoungerJune 25, 2002 at 2:15 pm #596879ok I set that, but now it’s giving me some wierd errors and will not let me delete anything. This is the error I recieve.
You cannot add or change a record because a related record is required in tblPublishing.
I didn’t do anything except change the relationship. I’ve not seen this errror before and I fill out all the data in both the main form and subfrom. Any idea’s on why this is telling me this? Thanks for the help.
-
WSPaulK
AskWoody Lounger -
WSNight
AskWoody LoungerJune 25, 2002 at 6:06 pm #596933Well it is on the One side of the relationship. Although the Records side shouldn’t be a many because there can only be one record for every publication when it comes to our record management process. I am getting this error after I enter information in both the main for and sub form and then I click delete. Is it possible that the AutoNumber field could be whats causing it? Meaning that the autonumbers in one table aren’t the same in the second table? Being the primary key that might do something, but I don’t know. Thanks for the help.
-
WSPaulK
AskWoody LoungerJune 25, 2002 at 6:21 pm #596938The primary key in the publisher’s table should be the foreign key in the records table by which the two are related. If this is not the case then you will get this error. Although, if there is only one records record per publisher I guess it could be the primary key in the other table as well. I haven’t worked that much with one-to-one relationships. At any rate, if you have records records (this is rather awkward) with no matching publisher record you will get that error message. Check your relationships and also check the link child and link master fields properties of the subform control.
-
WSNight
AskWoody LoungerJune 25, 2002 at 6:45 pm #596950this is all kind of confusing to me.
I am not the best with Access. So I don’t understand why Access would recognize my relationship as a One-to-many relationship. But this is how I set up my relationship. I go to Tools => Relationships and add the tables – tblPublishing, and tblRecordMan. Now I drag the ID field from tblPublishing over to the ID field of tblRecordMan. This brings up the relationship edit window. From here I click the Enforce Referential Integrity button and then select the Delete option for I don’t need the update option. Anyway, I save that and then go to my form to test. I enter in some data and all that good stuff on both forms and then hit the delete button to see if it works. This is when the error pops up. Telling me I can’t add or update for some such reaosn.
-
WSPaulK
AskWoody LoungerJune 25, 2002 at 8:05 pm #596977Are you trying to relate on autonumber fields in both tables? This is not a good idea as they may not synch. You should be using an autonumber field in the publisher table and a number long integer field in the recordman table. This way when you enter information into the main form then go to enter info in the subform it should place the value in the autonumber ifeld in the main form to the long integer field in the subform if you have your lik child and link master field properties set up correctly.
-
WSPaulK
AskWoody Lounger -
WSNight
AskWoody Lounger -
WSSupport4John
AskWoody Lounger -
WSPaulK
AskWoody Lounger -
WSSupport4John
AskWoody Lounger -
WSPaulK
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft Edge Launching Automatically?
by
healeyinpa
30 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 hour, 11 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 hour, 54 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
17 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
2 hours, 49 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
10 hours, 41 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
6 hours, 58 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
23 hours, 38 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
20 hours, 33 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 3 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 3 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
15 hours, 55 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 11 hours ago -
0Patch, where to begin
by
cassel23
1 day, 5 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 1 hour ago -
89 million Steam account details just got leaked,
by
Alex5723
1 day, 12 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days, 9 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 11 hours ago -
Installer program can’t read my registry
by
Peobody
4 hours, 34 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
1 day, 22 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 days, 5 hours ago -
False error message from eMClient
by
WSSebastian42
2 days, 20 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
3 days, 5 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
3 days, 7 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
4 hours, 39 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
3 days, 10 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
18 hours, 1 minute ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.