-
WSPlainsman
AskWoody LoungerIve tried it as based on a query and typed into its row scource.
-
WSPlainsman
AskWoody LoungerMy appologies for not being clear. Consider a form intended to look up envelope numbers for a church congregation:
field1 = [memberid]
field2= [envelopenumber]
These two fields are in a combo box intended to find the memberid when the user types in the envelope number. The problem is that the combo box doesn’t work when the envelope number is a numeric field. -
WSPlainsman
AskWoody LoungerSorry for the late reply. Been out of town. All computers are listed as Workgroup (changed the XP default). Do you mean the properties page for the NIC in the device manager? If so I can find no “master browser” settings.
-
WSPlainsman
AskWoody LoungerFirewalls on all computers is turned off including the one in XP provided it is only to be unchecked in the network properties.
-
WSPlainsman
AskWoody LoungerSmall perhaps, but more than the 91 that Northwind has. Is it this size that could be causing the continual crashes in my database while not in the Northwind? I am curious as to what code others would have written in place of:
Private Sub Form_Current()
Dim ParentDocName As StringOn Error Resume Next
ParentDocName = Me.Parent.NameIf Err 0 Then
GoTo Form_Current_Exit
Else
On Error GoTo Form_Current_Err
Me.Parent![subform2].Requery
End IfForm_Current_Exit:
Exit SubForm_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub -
WSPlainsman
AskWoody LoungerFor Charlotte: If you use the form wizard to construct a form with two subforms, such as the “Customers Orders” form in the Northwind database, the wizard will insert a “Current” event in the first subform which requeries the second subform. I apologize for not being able to put up a sample, but if you look at the Northwind database (courtesy of Microsoft), its structure is identical. Except that my database has a couple thousand records. Could this influence the query?
-
WSPlainsman
AskWoody LoungerThe setup and form are indeed identical to the “Customers orders” in the Northwind database. There too, you will notice the “On current” event, but it doesn’t crash. When I removed the same event from my form, and placed it in the “on click event”, no more crashes. But now the user would have to click the “select record”. And I’m curious WHY!!?
The only difference that I can see is that I have four combo boxes setup as searches (find by last name, find by phone, etc). Could this cause query problems?
I tried to attach a stripped down version but is 112 Kb at max compression. Will try importing everything into new database and if still a problem post sql.
-
WSPlainsman
AskWoody LoungerBoth subforms are on the main form (as in Northwind). Subform1 is linked to the main form, subform2 is linked to subform1.
Subform1: Child=CustomerID, Master=CustomerID
Subform2:Child=OrderID, Master=[Ordersubform].form!orderid -
WSPlainsman
AskWoody LoungerThis current event is being fired from the subform (subform1). I’m trying to requery the subsubform(subform2). Imagine the typical example of a customer (table) with several orders (subform1) and the items in each order(subform2). Without the query, I can click an order but the items do not change. Its basically the same code as in the Northwinds database example provided by Microsoft as samples. But I can see what you mean about it being in the on current event causing problems. If this is the case, I think Microsoft goofed because the wizard places it there too. How can I link the two subforms without a requery code and have the order details refreshed whenever I click a different order? or what code would you use?
-
WSPlainsman
AskWoody LoungerI too have used this form setup in other databases without a problem. I’m quite confident the links are fine (relationships and syntax). Remember, I did build the form at the birth of the application and it worked fine. I have partially solved this riddle but first I will explain further I could not replace subforms on this form nor build a NEW form with subforms either manually or with a wizard. The wizard would go through the whole process but refuse to build any part of the form after clicking the “Finish” button. If I start a brand new database, I CAN construct the form, subform and subsubform, UNLESS I import the tables (even without data). Then I get wizard error again, etc. The only things I have done that I can think of is add a couple of modules and add data. Removing the following module seems to help. But why I don’t know. Can you see anything in it that would cause this instability? I am now able to reconstruct the form but it will still crash on certain customers.
Public Function RemoveCharacter(strRemovalCharacter As String, strTableName As String, strFieldName As String)
‘===============================================================’
‘ Author: Jayden MacRae ‘
‘ Created: 27/10/2001 ‘
‘ Purpose: To remove any characters from a field in a table ‘
‘===============================================================’
Dim rstPerson As Recordset
Dim intHyphenPos As Integer
Dim strFieldValue As StringSet rstPerson = CurrentDb.OpenRecordset(strTableName, dbOpenTable)
With rstPerson
Do Until .EOF
Do
strFieldValue = Nz(.Fields(strFieldName))
intHyphenPos = InStr(1, strFieldValue, strRemovalCharacter)
If intHyphenPos > 0 Then
strFieldValue = Left(strFieldValue, intHyphenPos – 1) & _
Right(strFieldValue, Len(strFieldValue) – intHyphenPos)
End If
If strFieldValue .Fields(strFieldName) Then
.Edit
.Fields(strFieldName) = strFieldValue
.Update
End If
Loop Until intHyphenPos = 0
.MoveNext
Loop
.Close
End WithSet rstPerson = Nothing
End Function -
WSPlainsman
AskWoody LoungerI have checked all tables for null values in linked fields. None. I deleted the subsubform (orderdetails). The form worked. I tried to add a new subform but despite linking the fields and double checking, could not get it to work. Tried to reconstruct the form from scratch with the wizard but says it cannot construct form. I tried creating all new form with new tables (no data) and it will not do. i.e. one subform it will do, two it will not. I have run compact and repair. no change. Any ideas?
-
WSPlainsman
AskWoody LoungerI see … (“said the blind man”). Thanks Jayden!
-
WSPlainsman
AskWoody LoungerDownloaded fine this time. To work we go.
-
WSPlainsman
AskWoody LoungerI don’t usually have a problem downloading from this site but this attachment is locking me out. Doesn’t even ask for my password.
-
WSPlainsman
AskWoody Lounger1. Thanks. That works.
2. I tried to use an input mask in the properties of a combo box, set to look up customerID values (column1) when the user enters a phone number (column2). The phone numbers are otherwise being displayed without the hyphen despite trying to set the format property in the form or the table. They do display fine in the table where an input mask is set. So the I guess the question is how do I format the phone numbers so they will appear correctly. Otherwise my combo is set up the way you describe.
![]() |
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
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 hour, 33 minutes ago -
No HP software folders
by
fpefpe
2 hours, 18 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
18 minutes ago -
Stay connected anywhere
by
Peter Deegan
7 hours, 41 minutes ago -
Copilot, under the table
by
Will Fastie
4 hours, 55 minutes ago -
The Windows experience
by
Will Fastie
13 hours, 55 minutes ago -
A tale of two operating systems
by
Susan Bradley
4 hours, 51 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
19 hours, 15 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 10 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
3 hours, 40 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 11 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 3 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 3 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 5 hours ago -
MS Passkey
by
pmruzicka
1 day, 7 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 13 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 23 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 12 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 7 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 16 hours ago -
AI slop
by
Susan Bradley
1 day, 10 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 17 hours ago -
Two blank icons
by
CR2
1 day, 2 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 4 hours ago -
End of 10
by
Alex5723
4 days, 5 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 3 hours ago -
test post
by
gtd12345
4 days, 11 hours ago -
Privacy and the Real ID
by
Susan Bradley
4 days, 1 hour ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 4 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.