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 / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Can I use the value of a field as predeterminate value of another.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
elyonja - 30 Jul 2007 14:32 GMT
I am making a table to know who is working in each surgery in a heath center.
For each day, I have a field "owner" (of the surgery) and another "working"
(the one that really works that day there). But the majority of the days, the
"owner" is who works in his surgery, so I want to establish the value of
"owner" as predeterminate value of "working" . Is it possible?
Thank you
Roger Carlson - 30 Jul 2007 14:52 GMT
Not directly in the tables.  You could do this in a form by making the value
of one text box the default value of another text box.

Signature

--Roger Carlson
 MS Access MVP
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

>I am making a table to know who is working in each surgery in a heath
>center.
[quoted text clipped - 5 lines]
> "owner" as predeterminate value of "working" . Is it possible?
> Thank you
Wayne-I-M - 30 Jul 2007 14:56 GMT
Open the form in design view
Right click the form (outside the detail area)
Open propertiy box
Select the Event column
Select the OnLoad event
Select build option (...)
Select code
Use this

Private Sub Form_Load()
Me.working = [Owner]
End Sub

Change the control names to what they really are

Good luck

Signature

Wayne
Manchester, England.

> I am making a table to know who is working in each surgery in a heath center.
> For each day, I have a field "owner" (of the surgery) and another "working"
> (the one that really works that day there). But the majority of the days, the
> "owner" is who works in his surgery, so I want to establish the value of
> "owner" as predeterminate value of "working" . Is it possible?
> Thank you
 
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.