I have a form where I need to make sure a field is not blank. The field on the form is SpecID which has a dropdown list to select initials of the person. I created a table of initials with SpecID as the Primary key. I used this key in another table and used the Lookup wizard to make a combo box of initials. Now on the form I want to make sure the people select their initials. I have tried making it a required field in the table and I have tried creating a macro that says if SpecID is Null – cancel event – display message and Gotocontrol. That doesn’t work either. Is there any way to make sure this field is not blank????
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Required Field
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Required Field
- This topic has 4 replies, 3 voices, and was last updated 24 years ago.
Viewing 0 reply threadsAuthorReplies-
WSMarkLiquorman
AskWoody LoungerJune 11, 2001 at 12:45 pm #529039If you’ve made the field Required in your table, then you should not be able to move off the record (which causes an immediate update for a bound form) if nothing has been selected. Are you trying to prevent them from leaving that field without making a selection? I would advise against that. You can also put in code in your form’s BeforeUpdate event. Check that field for IsNull, if true, then set “Cancel=True” and “Exit Sub”.
-
WSLindaR
AskWoody LoungerJune 11, 2001 at 1:10 pm #529041I attached the macro to the BeforeUpdate event of the form. When I test the field by leaving it blank, it lets me create a record even though that field is blank. I even have it as a required field in the table but I leave it blank and it lets the record go through. Does it have something to do with the fact that I used a wizard to create the dropdown list?
-
WSMarkLiquorman
AskWoody Lounger -
WSEmilia
AskWoody LoungerJune 17, 2001 at 4:43 pm #529801Linda,
It shouldn’t have anything to do with the wizard. I first thought, using a macro and not an event procedure for the BeforeUpdate event could be the culprit (I never use macros for events). Now I just tested such a macro and it works. It doesn’t let me save the record even if the table field is not required and the NotInList procedure is not bothering. So it must be something else. Are you sure you can save records with that field empty after editing? Existing records with SpecID empty will remain so if there is no change in the record, because neither form’s BeforeUpdate nor ctlSpecID’s NotInList fires then.
Maybe you can post your macro commands here in some form, although an event procedure would be much better.
BTW, LimitToList=True itself does allow an empty field in A97 and A2K. But you should set it anyway, otherwise the users could enter initials not contained in your table.
-
-
Viewing 0 reply threads -

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
-
The Simpsons Kills Off Marge In Shocking Season Finale Twist
by
Alex5723
2 hours, 49 minutes ago -
AnduinOS (Windows 11 look alike)
by
Alex5723
3 hours, 28 minutes ago -
Total Commander updates
by
Alex5723
3 hours, 40 minutes ago -
Have you checked your FICO score?
by
Susan Bradley
1 hour, 17 minutes ago -
Chrome ‘Scream to Unlock’ : Scream louder to get more time on Social Media
by
Alex5723
5 hours, 36 minutes ago -
Taskbar icon size
by
CWBillow
4 minutes ago -
Is it Local or is it Microsoft Account?
by
RetiredGeek
4 hours, 54 minutes ago -
Does Your State Reveal Who’s Been Hacked?
by
Nibbled To Death By Ducks
1 day, 1 hour ago -
A one-year extension to Windows 10 โ almost free!
by
Susan Bradley
6 hours, 12 minutes ago -
Windows Configuration Update (KB5062324) โ June 2025
by
Alex5723
12 hours, 29 minutes ago -
A federal judge sides with Anthropic in lawsuit over training AI
by
Alex5723
1 day, 5 hours ago -
Name of MS Word Formatting Feature
by
John Baum
18 hours, 46 minutes ago -
InControl Failure?
by
Casey H
17 hours, 8 minutes ago -
Microsoft : Free 1 year support for Windows 10 after EOL
by
Alex5723
18 hours, 51 minutes ago -
MS-DEFCON 3: Businesses must tread carefully
by
Susan Bradley
10 hours, 34 minutes ago -
McLaren Health Care says data breach impacts 743,000 patients
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
WhatsApp banned on House staffers’ devices
by
Alex5723
2 days ago -
Is your device eligible?
by
Susan Bradley
2 days, 7 hours ago -
Windows 11 Insider Preview build 26200.5661 released to DEV
by
joep517
2 days, 14 hours ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
2 days, 14 hours ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
2 days, 15 hours ago -
New Canon Printer Wants Data Sent
by
Win7and10
2 days, 15 hours ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
5 hours ago -
AI is for everyone
by
Peter Deegan
2 days, 15 hours ago -
Terabyte update 2025
by
Will Fastie
2 days, 9 hours ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
16 hours, 36 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
1 day, 9 hours ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
1 day, 17 hours ago -
Plugged in 24-7
by
CWBillow
3 days ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
4 days, 3 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.