-
WSgellwood
AskWoody LoungerThank you Charlotte.
Code below works like a beauty and now I’ll integrate it into my program. BTW, it won’t work if the SQL specifies a join between the header and detail records, but in the Relationships window they are joined with “Cascading Delete” turned ON, so if I delete the header records .. eh voila! the detail is gone too.
Sub test3()
Dim cmdDelete As ADODB.Command
Dim strSQL As String
Dim conn As ADODB.ConnectionstrSQL = “DELETE tblPurchaseHeader.* FROM tblPurchaseHeader”
Set conn = CurrentProject.Connection
Set cmdDelete = New ADODB.Command
Set cmdDelete.ActiveConnection = conn
cmdDelete.CommandText = strSQL
cmdDelete.ExecuteEnd Sub
-
WSgellwood
AskWoody LoungerCharlotte-oh-blessed-guru-divine … I can learn from you in 2 seconds what it takes hours to figure out by books. Thank you … I will do as you suggest and let you know how it works out.
-
WSgellwood
AskWoody LoungerWow! SO SIMPLE and just what I need. Thank you Andrew.
-
WSgellwood
AskWoody LoungerThank you so much Howard, I have both the Developer Edition and VB 6.0. There’s just SO MUCH to know. I’m going to start with password protecting and read up about compiling into DLLs.
Gwenda -
WSgellwood
AskWoody LoungerHi Wendell,
Thank you for your help. What is ADP?
Gwenda -
WSgellwood
AskWoody LoungerCharlotte, your brain ought to be enshrined. I’ll get them to apply SR-1 and let you know what happens,.
Thank you,
Gwenda -
WSgellwood
AskWoody LoungerThanks Wendell. Yep — its a real Autonumber field. I think Charlotte’s suggestion to apply SR-1 is going to fix it. I’ll let you know how it turns out.
Gwenda -
WSgellwood
AskWoody LoungerThanks Douglas. I tried Compact & Repair … I think Charlotte hit the nail on the head when she says its a problem fixed by SR-1. I didn’t realize that you can over-ride autonumbers thru’ importing or appending. Do you know of a good place to read up on this?
Thanks again,
Gwenda -
WSgellwood
AskWoody LoungerWow! Thanks Charlotte — I knew I had seen these icons somewhere and have been casually looking for them in my VBE for months! Thanks, Gwenda
-
WSgellwood
AskWoody LoungerYou could do this very easily with a report … and then you could look at it in Preview mode and it would function just like your query.
This is from Ken Getz/Paul Litwin/Mike Gilbert’s “Access Developers Handbook:
“To create a row counter on a report, set a text box’s properties as follows –
Set the RunningSum property to Over Group (1) or Over All (2)
Set the ControllSource to =1Eh voila!
Gwenda -
WSgellwood
AskWoody LoungerHe sent me a screen shot which I attached to my original post. The “annotations” look like pop-up formating descriptions and the text looks marked-up.
-
WSgellwood
AskWoody LoungerThanks Dreamboat … I sent your response to my user. And yes, he insists that the annotations are printing.
Gwenda -
WSgellwood
AskWoody LoungerAugust 3, 2001 at 5:58 pm in reply to: Convert to Ucase keystroke-by-keystroke (Access 2000) #535891Thanks for all of your help.
-
WSgellwood
AskWoody LoungerGreat list but don’t forget
CUSTOM PROPERTIES! -
WSgellwood
AskWoody LoungerHi Andy,
I’m chicken … afraid of calling your DLL in my Access program. Don’t I have to register your DLL first?
Gwenda
![]() |
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
-
50 years and counting
by
Susan Bradley
1 hour, 7 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 hour, 17 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
9 hours, 51 minutes ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
9 hours, 56 minutes ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
10 hours ago -
OneNote and MS Word 365
by
CWBillow
11 hours, 49 minutes ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
11 hours, 59 minutes ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
12 hours, 13 minutes ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
12 hours, 24 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
23 hours, 54 minutes ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
23 hours, 56 minutes ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
1 day, 8 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
20 hours, 44 minutes ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
16 hours, 38 minutes ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
1 day, 17 hours ago -
Apple backports fixes
by
Susan Bradley
1 day ago -
Win 11 24H2 will not install
by
Michael1950
16 hours, 39 minutes ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
3 hours, 52 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
6 hours, 25 minutes ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
1 day, 19 hours ago -
Get back ” Open With” in context menus
by
CWBillow
2 days, 8 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
1 day ago -
simple general stupid question
by
WSaltamirano
2 days, 6 hours ago -
April 2025 Office non-Security updates
by
PKCano
2 days, 23 hours ago -
Microsoft wants to hear from you
by
Will Fastie
1 day, 23 hours ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
3 days, 2 hours ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
3 days, 8 hours ago -
Test post
by
Susan Bradley
3 days, 10 hours ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
3 days, 12 hours ago -
SSD shuts down on its own
by
CWBillow
3 days, 3 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.