-
WSMr. Bob
AskWoody LoungerHere is the whole function:
PrimaryCR = [Forms]![Corrections Entry]![CR Subform].[Form]![CorrCR]
RptFilter = “[CorrCR]=” & PrimaryCR
DoCmd.OpenReport “AdHocCorrectionsListing — New”, acViewNormal, “AdHocCorrectionsListing — New”, RptFilterThanks,
Bob -
WSMr. Bob
AskWoody LoungerThanks, that worked.
In VBA, I used:
PrimaryCR = [Forms]![Corrections Entry]![CR Subform].[Form]![CorrCR]
Where Corrections Entry is the main form, CR subform is the subform, and CorrCR is the field value I want from the CR subform.
-
WSMr. Bob
AskWoody LoungerThanks, that worked.
In VBA, I used:
PrimaryCR = [Forms]![Corrections Entry]![CR Subform].[Form]![CorrCR]
Where Corrections Entry is the main form, CR subform is the subform, and CorrCR is the field value I want from the CR subform.
-
WSMr. Bob
AskWoody LoungerHere are two:
*********************
Name (First query): Archive Selected Records
SQL (First query):
INSERT INTO [CorrectionCRs Archive]
SELECT CorrectionCRs.*
FROM CorrectionCRs
WHERE (((CorrectionCRs.CorrDate) Between [Starting archive date.] And [Ending archive date.]))Name (Second query): Delete Selected Records
SQL (Second query):
DELETE CorrectionCRs.*, CorrectionCRs.CorrDate
FROM CorrectionCRs
WHERE (((CorrectionCRs.CorrDate) Between [Starting deletion date.] And [Ending deletion date.]));*********************
The queries do work at the beginning, but if, for example, I make a small change in the wording of a parameter query, the error message starts appearing.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerHere are two:
*********************
Name (First query): Archive Selected Records
SQL (First query):
INSERT INTO [CorrectionCRs Archive]
SELECT CorrectionCRs.*
FROM CorrectionCRs
WHERE (((CorrectionCRs.CorrDate) Between [Starting archive date.] And [Ending archive date.]))Name (Second query): Delete Selected Records
SQL (Second query):
DELETE CorrectionCRs.*, CorrectionCRs.CorrDate
FROM CorrectionCRs
WHERE (((CorrectionCRs.CorrDate) Between [Starting deletion date.] And [Ending deletion date.]));*********************
The queries do work at the beginning, but if, for example, I make a small change in the wording of a parameter query, the error message starts appearing.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerIt does look like the local copies of the database interact with a back-end database on a network drive, so I don’t think replication is set up. Thanks anyway for the information resource–that might come in handy some day.
-
WSMr. Bob
AskWoody LoungerIt does look like the local copies of the database interact with a back-end database on a network drive, so I don’t think replication is set up. Thanks anyway for the information resource–that might come in handy some day.
-
WSMr. Bob
AskWoody LoungerThanks–That gets me pointed in the right direction. Right now, I’m leaning towards a macro that runs an append query, then a delete query. I’d also like to prompt for a date cutoff–would that best be done with a parameter query or a dialog box?
Also, yes, there are auto-numbers, and they’re used to relate tables, so I’ll have to be careful with them.
Bob
-
WSMr. Bob
AskWoody LoungerThanks–That gets me pointed in the right direction. Right now, I’m leaning towards a macro that runs an append query, then a delete query. I’d also like to prompt for a date cutoff–would that best be done with a parameter query or a dialog box?
Also, yes, there are auto-numbers, and they’re used to relate tables, so I’ll have to be careful with them.
Bob
-
WSMr. Bob
AskWoody LoungerKlaus, that’s the exact kind of edit that I’m having problems with–the deletion of the last paragraph marker in a document. Isn’t there supposed to be something unique about that last paragraph marker? Something about it containing all the formatting for the document? I wonder if Word has some kind of natural defense coded into it.
Bob
-
WSMr. Bob
AskWoody LoungerHere is the processing code that is applied to every document in the loop:
ActiveDocument.TrackRevisions = False
ActiveDocument.AcceptAllRevisionsThanks,
Bob -
WSMr. Bob
AskWoody LoungerThanks. That was exactly what I needed. I’m just plowing through a bunch of documents to find certain things. The error is just another form of “No”, so I don’t really need it for troubleshooting.
-
WSMr. Bob
AskWoody LoungerThe UnlinkPictures sub worked. Interestingly, I tried it without the Update method, and my graphics disappeared again. Using the Update method, the graphics appeared. I added a “Selection.Fields.Update” line to the code that Hans offered earlier, and it now works for me too.
Thanks for all of your help,
Bob“By dog, there’s more than one way to pluck a buzzard!” — Andy Griffith
-
WSMr. Bob
AskWoody Lounger<<Do you have Tools/Options/View tab/picture placeholders UNchecked?
Yes, I thought of that earlier and it's unchecked. It's strange–some of the graphics unlink properly and some don't. I've been comparing everything possible between the successes and the failures and I can't figure it out.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerAdding a space after ^d makes a difference. I created a second With loop that looks for “^d INCLUDEPICTURE”and now every graphic is being processed, which is good. I’ll have to work on that graphics issue. The placeholders show, but nothing else shows. I tried printing the doc, and there’s just blank spaces where the graphics should be.
Thanks for your help,
Bob
![]() |
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 |

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
-
Blocking Search (on task bar) from going to web
by
HenryW
2 hours, 5 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
7 hours, 12 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
7 hours, 18 minutes ago -
regarding april update and may update
by
heybengbeng
8 hours, 48 minutes ago -
MS Passkey
by
pmruzicka
4 hours, 52 minutes ago -
Can’t make Opera my default browser
by
bmeacham
16 hours, 28 minutes ago -
*Some settings are managed by your organization
by
rlowe44
3 hours, 11 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
15 hours, 22 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 11 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
AI slop
by
Susan Bradley
10 hours, 10 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 21 hours ago -
Two blank icons
by
CR2
9 hours, 5 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 6 hours ago -
End of 10
by
Alex5723
2 days, 8 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 6 hours ago -
test post
by
gtd12345
2 days, 14 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 5 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
7 hours, 24 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 19 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 7 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 10 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 10 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 22 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 12 hours ago -
Are manuals extinct?
by
Susan Bradley
13 hours, 17 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 22 hours ago -
Network Issue
by
Casey H
3 days, 9 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days, 10 hours ago -
May 2025 Office non-Security updates
by
PKCano
4 days, 10 hours 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.