-
WSRainyCity4
AskWoody LoungerShane,
You are right, there are a lot of John Smith’s running around. grin. I visually verified that there are no “duplicate” names in my current table. Since the tblParticipant is pretty much done (We don’t get that many new additions lately), I think it would be safe enough to do so.
I’ll try that idea of yours. I had the same idea, tried it out and it still accepted the entry. Although, I had done it via table instead of a form.
-
WSRainyCity4
AskWoody LoungerSure.
This is from frmAcceptance – Name combo box.
SELECT [tblParticipant].[ParticipantID], [LastName] & “, ” & [FirstName] AS Expr1, [tblAppStatus].[AppStatus] FROM tblParticipant INNER JOIN tblAppStatus ON [tblParticipant].[ParticipantID]=[tblAppStatus].[ParticipantID] WHERE ((([tblAppStatus].[AppStatus])=2));
This is the row source for the frmSetAppStatus Name combo box:
SELECT [tblParticipant].[ParticipantID], [LastName] & “, ” & [FirstName] AS Expr1, [tblParticipant].[LastName] FROM tblParticipant ORDER BY [tblParticipant].[LastName];
-
WSRainyCity4
AskWoody LoungerGot an error message saying that use of null value is not allowed. Oh well.
Thanks for your help, I guess it is simply not possible. I’ll have the user enter the name twice (once in main form and once in the fldg).
-
WSRainyCity4
AskWoody LoungerAhhh…Please forgive me for being such a thick-head grin.
So, in the NotInList event, after DoCmd.OpenForm…line, I add this line: Me.Name.Column(0)?
Brent
-
WSRainyCity4
AskWoody LoungerHow can I pass the ID if it isn’t in the list?
Guess it is simply not possible. I’ll have to bite the bullet and force users to type the name again in secondary form.
-
WSRainyCity4
AskWoody LoungerThe columns in the Unbound Combo Box are:
ParticipantID
Name: LastName&”, “&FirstNameThe name is being passed on to the combo box via VBA (I can verify it by “hovering” my cursor and getting a tool tip telling me the results) but it is NOT showing up in the combo box field. I am sorry for not being clear in my previous post.
-
WSRainyCity4
AskWoody LoungerI’m using Access 2000
-
WSRainyCity4
AskWoody LoungerI’ll test the code, you have done a lot by giving me suggestions, I don’t want to impose on you too much. Smile.
Thanks for the clarification, I tried your code, at the break points, I can see that the name of participant is being passed on but still refuse to show up in the dialog box. I’m gonna look up in my reference book because I recall seeing a similiar situation that worked before…
-
WSRainyCity4
AskWoody LoungerThe reason there is a combo box on the second form is because I was trying to filter my main form combo box to show only participants who were accepted to camp. For reasons too lengthy to list here, I couldn’t use conventional filtering so I had to set the combo box to list participants based on their Application Status (Waiting List, Accepted and Not Accepted). If the person is still on Waiting List, then that person wouldn’t show up on the combo box. This is where my code fires and opens second form which enables me to look up that person and change the status and then requeries the main form so that the person would show up there.
1. Does the code you just posted work with combo boxes?
2. I don’t understand your code. Which parts of it that I need to switch with names of my forms/fields?Thanks for your time and patience! I’m learning a lot from this.
-
WSRainyCity4
AskWoody LoungerI can’t seem to attach it…
Here’s the code:
Private Sub cboName_NotInList(NewData As String, Response As Integer)
‘ If not listed, then open fldgSetAppStatusDim strTitle As String
Dim intMsgDialog As Integer
Dim strMsg1 As String
Dim strMsg2 As String
Dim strMsg As String
Dim strEntry As String
Dim strFormName As String
Dim frm As Form
Dim intReturn As Integer
Dim strName As StringstrFormName = “frmAcceptance”
strEntry = “ParticipantID”
Set frm = Forms(strFormName)‘Display a message box asking if the user wants to add
‘a new entry
strTitle = strEntry & ” Not in List”
intMsgDialog = vbOK + vbExclamation + vbDefaultButton1
strMsg1 = “You need to set ”
strMsg2 = “‘s App Status.”
strMsg = strMsg1 + NewData + strMsg2
intReturn = MsgBox(strMsg, intMsgDialog, strTitle)If intReturn = vbCancel Then
Response = acDataErrContinue
frm.Undo
Exit Sub
ElseIf intReturn = vbOK Then
‘Open form for adding new client
frm.Undo
Response = acDataErrContinue
DoCmd.OpenForm “fldgSetAppStatus”
Forms!fldgSetAppStatus!cboName = NewData
End IfEnd Sub
-
WSRainyCity4
AskWoody LoungerWe are getting there. When I set the breakpoint in the VB editor, and I see it says: “cboName=Traub, Carolyn” but the dialog box still shows the Name combo box as blank. Am I missing something?
This is what I did: Forms!fldgSetAppStatus!cboName=NewData and this is the last line in the code. Does the order of code affect this somehow?
-
WSRainyCity4
AskWoody LoungerPaul, thanks for the tip. Now, I’m not sure how do I write a code that pastes NewData into the unbound combo box on the dialog box?
I’ve tried Mid statement (can see the NewData content) but how do I tell it to actually insert it into the combo box?
-
WSRainyCity4
AskWoody LoungerThanks to you both for your suggestions. I had finally figured out why it wasn’t working (I’m still relatively new to VBA).
I had attempted to open a dialog box whenever the item isn’t in the list in the main form. I belatedly realized that if the item wasn’t in the list the first time around, then I wouldn’t be able to set the dialog box combo box to match the main form (no key).
If you have an idea of how I could somehow parse the name in the main form’s combo box into the dialog box, that’d be great.
Again, thanks in advance for your help.
-
WSRainyCity4
AskWoody LoungerMan! You are a KNIGHT IN A SHINING ARMOR!
If you ever are in Seattle area, give me a ring and I’ll treat you to a dinner! Smile.
By the way, how do you know all of this arcane stuff? The book never mentioned this nor did the Microsoft support website or help files.
-
WSRainyCity4
AskWoody LoungerI am not sure I understood the thread correctly, but I work with visually impaired people and they cannot see checkboxes, I was forced to use combo boxes so that they could see “Yes”/”No”. Then, I stumbled into this one:
In table: Set those fields you want to be Yes/No, then in the Properties for those Yes/No fields, click on Lookup tab and change the view to Text.
Go to your forms and delete the checkboxes and add them again. Access will automatically change them to textboxes and all you need to do is to type “yes” or “no” and it will automatically store -1 (yes) or 0 (no) in the table.
![]() |
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
-
Outdated Laptop
by
jdamkeene
2 hours, 25 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
4 hours, 47 minutes ago -
Another big Microsoft layoff
by
Charlie
4 hours, 26 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
4 hours, 15 minutes ago -
May 2025 updates are out
by
Susan Bradley
4 hours, 51 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
10 hours, 30 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
10 hours, 32 minutes ago -
Drivers suggested via Windows Update
by
Tex265
10 hours, 23 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
8 hours, 7 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
17 hours, 23 minutes ago -
Apple releases 18.5
by
Susan Bradley
11 hours, 48 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
18 hours, 49 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
19 hours, 26 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
2 hours, 42 minutes ago -
No HP software folders
by
fpefpe
1 day, 3 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
27 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 8 hours ago -
Copilot, under the table
by
Will Fastie
23 hours, 43 minutes ago -
The Windows experience
by
Will Fastie
1 day, 14 hours ago -
A tale of two operating systems
by
Susan Bradley
1 day, 5 hours ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 20 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 11 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 4 hours ago -
Blocking Search (on task bar) from going to web
by
HenryW
6 hours, 44 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
3 days, 4 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
3 days, 4 hours ago -
regarding april update and may update
by
heybengbeng
3 days, 6 hours ago -
MS Passkey
by
pmruzicka
2 days, 8 hours ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 13 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.