Can someone please explain the diiferences between Me.DefaultValue and Me.Value. When should I use one instead of the other? Thank you so much.
![]() |
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 |
-
When to use .Value vs .DefaultValue (Access2K)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » When to use .Value vs .DefaultValue (Access2K)
- This topic has 1 reply, 2 voices, and was last updated 19 years, 11 months ago.
AuthorTopicWSkucingtidur
AskWoody LoungerMay 23, 2005 at 1:44 pm #419885Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerMay 23, 2005 at 2:05 pm #949266I don’t think you can use either. In the code behind a form or report, Me refers to the active instance of that form or report. Value and DefaultValue are properties of controls, not of a form or report, so Me.Value and Me.DefaultValue don’t make sense.
DefaultValue is used to specify the value of a control (or field) in a new record. For example, say that you have a table storing information about clients. One of the fields is Country. If most of your clients are from the USA, it would be nice if the end user doesn’t have to enter USA in the Country field. So you set the Default Value of the Country field in the table, or of the Country control on the form bound to the table, to “USA”. The Default Value is ONLY used when the user creates a new record, it is not relevant in existing records.
The Value property of a control is the value of the control in the current record. This is the one you usually use in code if you want to check whether the user has entered a valid value etc. Since Value is the default property of a control, you can usually omit it, Me.Country is equivalent to Me.Country.Value.
Post back if you need more information.
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
-
Trying to backup Win 10 computer to iCloud
by
SheltieMom
7 minutes ago -
Windows 11 Insider Preview build 26200.5570 released to DEV
by
joep517
9 hours, 52 minutes ago -
Windows 11 Insider Preview build 26120.3941 (24H2) released to BETA
by
joep517
11 hours, 40 minutes ago -
Windows 11 Insider Preview Build 22635.5305 (23H2) released to BETA
by
joep517
11 hours, 42 minutes ago -
No April cumulative update for Win 11 23H2?
by
Peobody
13 hours, 59 minutes ago -
AugLoop.All (TEST Augmentation Loop MSIT)
by
LarryK
12 hours, 13 minutes ago -
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
1 day, 3 hours ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
1 day, 6 hours ago -
Inetpub can be tricked
by
Susan Bradley
1 day, 8 hours ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
45 minutes ago -
FBI 2024 Internet Crime Report
by
Alex5723
1 day, 10 hours ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
22 hours, 25 minutes ago -
Login issues with Windows Hello
by
CWBillow
1 day, 21 hours ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
1 day, 9 hours ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
2 days, 9 hours ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
2 days, 9 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
2 days, 9 hours ago -
april update
by
69800
14 hours, 13 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
2 days, 10 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
2 days, 11 hours ago -
WuMgr not loading?
by
LHiggins
1 day, 6 hours ago -
Word crashes when accessing Help
by
CWBillow
1 day, 15 hours ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
2 days, 10 hours ago -
Blank Inetpub folder
by
Susan Bradley
2 days, 8 hours ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
2 days, 21 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
2 days, 7 hours ago -
Wait command?
by
CWBillow
2 days, 14 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
3 days, 3 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
3 days, 10 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
3 days, 19 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.