-
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 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
9 minutes ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
2 hours, 28 minutes ago -
Mystical Desktop
by
CWBillow
2 hours, 42 minutes ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
5 hours, 24 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
6 hours, 34 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
17 hours, 54 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
20 hours, 44 minutes ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
18 hours, 49 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
11 hours, 21 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
1 day, 6 hours ago -
Location, location, location
by
Susan Bradley
3 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
1 day, 7 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
22 hours, 24 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
1 day, 18 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
14 hours, 49 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
1 day, 18 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
2 days, 4 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
1 day, 7 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
2 days, 13 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
2 days, 13 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 days, 3 hours ago -
Firefox 139
by
Charlie
1 day, 19 hours ago -
Who knows what?
by
Will Fastie
22 hours, 7 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
2 days, 14 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
7 hours, 46 minutes ago -
Misbehaving devices
by
Susan Bradley
1 day, 9 hours ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 days, 20 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
18 hours, 59 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days, 18 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
2 days, 17 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.