Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / April 2005

Tip: Looking for answers? Try searching our database.

I want to use a field as the default value for another field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kathy D - 26 Apr 2005 16:13 GMT
I am setting up a table that includes the field "First Name" and "Familiar
First Name"  I want the default for the second field to be the first since in
most cases, it's the same-I cannot find out how to do this anywhere!!  There
must be an expression or something???
Rick Brandt - 26 Apr 2005 16:25 GMT
> I am setting up a table that includes the field "First Name" and
> "Familiar First Name"  I want the default for the second field to be
> the first since in most cases, it's the same-I cannot find out how to
> do this anywhere!!  There must be an expression or something???

Nope, because all default values are assigned the instant the "New record"
position is displayed, before you have had an opportunity to enter a value
in [First Name].

On a Form (where all data entry belongs) you can use the AfterUpdate event
of [First Name] to set the value of [Familiar First Name]

If IsNull(Me![Familiar First Name]) = True Then Me![Familiar First Name] =
Me![First Name]

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.