-
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
-
Thunderbird release notes for 128 esr have disappeared
by
EricB
32 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
3 hours, 41 minutes ago -
Apple releases 18.5
by
Susan Bradley
4 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
5 hours, 7 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
5 hours, 45 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
12 hours, 41 minutes ago -
No HP software folders
by
fpefpe
13 hours, 26 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
5 hours, 38 minutes ago -
Stay connected anywhere
by
Peter Deegan
18 hours, 49 minutes ago -
Copilot, under the table
by
Will Fastie
10 hours, 2 minutes ago -
The Windows experience
by
Will Fastie
1 day, 1 hour ago -
A tale of two operating systems
by
Susan Bradley
15 hours, 59 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 6 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 21 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
14 hours, 48 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 22 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 14 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 15 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 16 hours ago -
MS Passkey
by
pmruzicka
1 day, 18 hours ago -
Can’t make Opera my default browser
by
bmeacham
3 days ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 10 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 23 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 18 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 3 hours ago -
AI slop
by
Susan Bradley
1 day, 21 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 5 hours ago -
Two blank icons
by
CR2
1 day, 13 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 15 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.