Help

t406jaw

Board Regular
Joined
Oct 20, 2002
Messages
148
Help!

I have 3 text boxes on a form in access,

Total Training Sessions 35
Traing Sessions Attended any number (say 20)
Training Sessions missed
Letter (check box)



is it possible with the use of code for the 3 text box to work out the number of sessions missed ie 15 and add a check in the box if the number of sessions missed is greater than ten.??????????

:oops: :oops: :oops:
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
On the On Current event of the form you want something like:-
Code:
If Me![Total Training Sessions] - Me![Training Sessions Attended] > 10 Then
   Me![Letter].Visible = True
Else
   Me![Letter].Visible = False
End If


HTH

Peter
 
Upvote 0
In the After Update event procedure for the text box Training Sessions Attended, put something like this.

Me.[TrainingSessionsMissed] = Me.[TotalTrainingSessions] - Me.[TrainingSessionsAttended]

If Me.TrainingSessionsMissed > 10 Then
Me.Letter.Visible = True
' or Me.Letter = true
End If

You will need to set the checkbox property Visible to No and set the Default Value to True. It might be better to have the check box visible but set to false and update it to true when the test has been passed. Just a thought.
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top