I would like to set the “required” property in Field One (Text) of an Access table to True if Field Two (Date) has a value. Any hints to get me started, please?
![]() |
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 |
-
Changing the “required” property according to value in another field
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Changing the “required” property according to value in another field
- This topic has 2 replies, 2 voices, and was last updated 11 years, 9 months ago.
Viewing 0 reply threadsAuthorReplies-
RetiredGeek
AskWoody_MVPJuly 15, 2013 at 2:30 pm #1401278G,
You could use something like this in the date field (text4) in the example.
Code:Option Compare Database Option Explicit Private Sub Text4_LostFocus() If (Not IsNull(Me.Text4.Value)) And _ IsNull(Me.Text0.Value) Then MsgBox "Field1 is Required", _ vbOKOnly + vbCritical, _ "Error: Required data missing" Me.Text0.SetFocus End If End Sub
You would use similar code Lost_Focus event in Field1. HTH :cheers:
34392-AccessReqFieldUpdate: I forgot to mention that you could do date specific testing instead of just checking for an empty field.
-
WSgsmith
AskWoody Lounger
-
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
-
TotalAV safety warning popup
by
Theodore Nicholson
1 hour, 12 minutes ago -
two pages side by side land scape
by
marc
1 day ago -
Deleting obsolete OneNote notebooks
by
afillat
1 day, 2 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
5 hours, 29 minutes ago -
Security Essentials or Defender?
by
MalcolmP
8 hours, 13 minutes ago -
April 2025 updates out
by
Susan Bradley
44 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 hour, 34 minutes ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
29 minutes ago -
Creating an Index in Word 365
by
CWBillow
18 hours, 10 minutes ago -
Coming at Word 365 and Table of Contents
by
CWBillow
9 hours, 39 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
1 day, 21 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
2 days ago -
W11 24H2 – Susan Bradley
by
G Pickerell
2 days, 2 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
2 days ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
1 day, 18 hours ago -
I installed Windows 11 24H2
by
Will Fastie
31 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 days, 6 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 23 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
2 days, 14 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
1 day, 22 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
1 day, 23 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
3 days, 7 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
3 days, 16 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
2 days, 18 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
3 days ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
3 days, 11 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
5 days, 2 hours ago -
50 years and counting
by
Susan Bradley
2 days, 1 hour ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
2 days, 4 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
5 days, 14 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.