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 / Forms Programming / February 2007

Tip: Looking for answers? Try searching our database.

Answer No and have it fill in No's in other fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry - 11 Feb 2007 06:56 GMT
What is the best code for the following:
I answer "No" in a field and then I would like it to automatically answer
"No" in 5 differrent fields in the same form and record?
Graham Mandeno - 11 Feb 2007 21:22 GMT
Hi Jerry

Use the AfterUpdate event of the first control (checkbox?)

Private Sub Field1_AfterUpdate()
If Field1 = 0 Then
   Field2 = 0
   Field3 = 0
   Field4 = 0
   ... etc
End If
End Sub

Signature

Good Luck  :-)

Graham Mandeno [Access MVP]
Auckland, New Zealand

> What is the best code for the following:
> I answer "No" in a field and then I would like it to automatically answer
> "No" in 5 differrent fields in the same form and record?
John W. Vinson - 11 Feb 2007 21:27 GMT
>What is the best code for the following:
>I answer "No" in a field and then I would like it to automatically answer
>"No" in 5 differrent fields in the same form and record?

well... the best result might be to properly normalize your database
so this doesn't need to happen... but...

Use VBA code in the control's AfterUpdate event. Is this a text field,
or a Yes/No field? Is the form control a Checkbox, Textbox, or Combo
Box?

            John W. Vinson [MVP]
 
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.