-
WSrhconley
AskWoody LoungerThank you, Mark. I really appreciate your, and everyone else’s in the Lounge, help.
-
WSrhconley
AskWoody LoungerMark,
As usual, you provided good advice. After I read your response, I figured out how to write a query to get the information and my problem is solved. Thanks, again.
-
WSrhconley
AskWoody LoungerI just had this problem in an application I’m developing. In my case, it happened because I assigned a default value to both the control on the subform and the corresponding field in the database table. As soon as I removed the default value from the table field, #Error disappeared from the control on the subform. I hope this helps.
-
WSrhconley
AskWoody LoungerYou should be able to export to a format Word will read by selecting .RTF format. You may lose some formatting, but Word should read the file.
-
WSrhconley
AskWoody LoungerI have a form/subform combination that presents Purchase Order information on the main form and line items for that Purchase Order on the subform. When I try to delete a subform record, I’m presented with “Records cannot be deleted on this form”. Is this because I have Cascade Delete Related Records selected? I don’t want to delete the record in the primary table, just one of the related records in the related table.
-
WSrhconley
AskWoody LoungerI think I misstated my original problem. Currently, after data is entered in the last field of a subform record, and the user tabs through that last field, a new blank record is automatically created. If the user then exits that form, a blank record is added to the underlying table. I don’t want that blank record. Can I stop this?
-
WSrhconley
AskWoody Lounger -
WSrhconley
AskWoody Lounger -
WSrhconley
AskWoody LoungerCharlotte,
I appreciate your patience. I still can’t get this thing to work. Here’s my current code:
Private Sub Company_AfterUpdate()
‘This is the AfterUpdate event of the Company combo box
Call SetFindSrc
End Sub
Public Sub SetFindSrc()
Dim strSQL As StringIf [Company] “” Then
strSQL = “SELECT DISTINCTROW tblSUBINFO.AgreementNumber ” _
& “FROM tblSUBINFO ” _
& “WHERE tblSUBINFO.Company Like ‘” & [Company] & “‘”
Me!Agreement.RowSource = strSQL
Me!Agreement.Requery
Me!Agreement.SetFocus
End If
End SubAgain, I have a form with 2 combo boxes-Company and Agreement. I want to select the Company and have only those agreements associated with that company show up in the Agreement combo box. The current form is used to populate Table tblSUBEVAL. The Company and Agreement data is stored in Table tblSUBINFO. What am I doing wrong? Thank you for your help and patience.
-
WSrhconley
AskWoody LoungerPaul,
Thanks for the guidance. But, as my code below shows, I made your corrections but I still can’t get it to work. Again, this code is the AfterUpdate event for the Company combo box. However, when I pick a company, the Agreements box remains blank. Is this because I can’t assign the RowSource for the Agreement Combo Box on the current form (Me!Agreement) to strSQL? I’m sorry if this is confusing. I greatly appreciate the help.
Private Sub Company_AfterUpdate()
‘This is the AfterUpdate event of the Company combo box
Call SetFindSrc
End Sub
Public Sub SetFindSrc()
‘Modified 6/12/01
Dim strSQL As StringIf Not IsNull([Company]) Then
strSQL = “SELECT DISTINCTROW tblSUBINFO.AgreementType, ” _
& “tblSUBINFO.AgreementNumber ” _
& “FROM tblSUBINFO ” _
& “WHERE tblSUBINFO.Company Like ‘” & [Company] & “*’;”
Me!Agreement.RowSource = strSQL
Me!Agreement.Requery
Me!Agreement.SetFocus
End If
End Sub -
WSrhconley
AskWoody LoungerCharlotte,
Thank you for the guidance. I still can’t get things to work, however. Here’s the code I’ve created:
Private Sub Company_AfterUpdate()
‘This is the AfterUpdate event of the Company combo box
Call SetFindSrc
End Sub
Public Sub SetFindSrc()
‘Modified 6/12/01
Dim strSQL As StringIf Not IsNull([Company]) Then
strSQL = “SELECT DISTINCTROW tblSUBINFO.AgreementType, ” _
& “tblSUBINFO.AgreementNumber ” _
& “FROM tblSUBINFO ” _
& “WHERE tblSUBINFO.Company Like Company”
Me!Agreement.RowSource = strSQL
Me!Agreement.Requery
Me!Agreement.SetFocus
End If
End SubAgain, what I’m trying to do is select a company name from a combo box on a form. After I select a company, I want to populate another combo box on the same for with just those actions associated with that company. The company name and actions are in Table A. The form is being used to populate Table B. When I run this code as the After Update event for the company combo box, the other combo box remains blank, with nothing in the drop down list. I know this is confusing and greatly appreciate the help. Thank you.
-
WSrhconley
AskWoody LoungerActually, I just wanted 2 of them open. This is a strange situation because we just switched network domains and, in the process, I lost all of my original folder settings. Prior to the domain change, I had Explorer set up just the way I wanted it. Now I can’t get it back. Frustrating.
-
WSrhconley
AskWoody LoungerDave,
I just tried what you said, 5 times. No change. I set up the Explorer window the way I wanted it, selected Tools, Folder Options, View, Like Current Folder. When I close and re-enter Explorer, the folder list is collapsed, just the way I don’t want it. I can’t figure out what’s up.
-
WSrhconley
AskWoody LoungerCharlotte, thanks for your help and patience. Let me try to simplify:
On FORM X, the user selects a company from a combo box (the companies are stored in TABLE A). Based on the company they select, I want only the actions associated with that company (also stored in TABLE A) to display in another combo box on the same FORM X. Both the company and action selections will be stored in TABLE B which is associated with FORM X. I just can’t make this happen! I hope this simplifies my conumdrum somewhat.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Who knows what?
by
Will Fastie
17 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 hour, 35 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
4 hours, 21 minutes ago -
Misbehaving devices
by
Susan Bradley
10 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
21 hours, 59 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
17 hours, 43 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
20 hours, 34 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
20 hours, 42 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
10 hours, 51 minutes ago -
Rufus is available from the MSFT Store
by
PL1
18 hours, 54 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 21 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day, 4 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 hour, 23 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 17 hours ago -
Office gets current release
by
Susan Bradley
1 day, 20 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 10 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 18 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 11 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 20 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 23 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 23 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
4 days ago -
OpenAI model sabotages shutdown code
by
Cybertooth
4 days ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 12 hours ago -
Enabling Secureboot
by
ITguy
3 days, 19 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 8 hours ago -
No more rounded corners??
by
CWBillow
4 days, 4 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 18 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 20 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 23 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.