Form Background: I have a Single Form (necessary due to a Cascading Combo Box series) with a subForm datasheet. I enter the information into the Single Form (CourseTaken) and use a query to pull all related information into the DataSheet (CourseSummary) thereby mocking a split form. the two forms are tied using StudentID and CourseTakenID. The form has several command buttons. The Practicum/Portfolio/Paper buttons open forms that hold all other information required that is not on the CourseTaken form.
What I want to be able to do is this: When a student begins their P/P/P course the status is changed to "In Progress" ect. Using the information entered in the CourseTaken form "CourseNoID" and "CourseStatus" to change the color of the P/P/P button (located on the CourseTaken form). with the color change visible whenever the CourseTaken form is open not matter which record is loaded into the form itself.
I have tried this code in the On Load and On Current and it works, but ONLY when I select the P/P/P course from the subform and load the record into the fields of the CourseTaken form.
'change button capstone button color for Completed
Dim lngGreen As Long, lngBlue As Long
lngBlue = RGB(64, 224, 208)
lngGreen = RGB(127, 255, 212)
If Me.CourseNoID = "10" And Me.CourseStatus = "Completed" Then
Me.cmdPracticum.BackColor = RGB(64, 224, 208)
End If
The other status' would have different colors.
I have attached a screen grab that may make some sense of what I would like to do
I did have another post regarding this back in June 12 but the same happened, only showed when loaded:
http://www.access-programmers.co.uk/forums/showthread.php?t=228865&highlight=cmdbutton
What I want to be able to do is this: When a student begins their P/P/P course the status is changed to "In Progress" ect. Using the information entered in the CourseTaken form "CourseNoID" and "CourseStatus" to change the color of the P/P/P button (located on the CourseTaken form). with the color change visible whenever the CourseTaken form is open not matter which record is loaded into the form itself.
I have tried this code in the On Load and On Current and it works, but ONLY when I select the P/P/P course from the subform and load the record into the fields of the CourseTaken form.
'change button capstone button color for Completed
Dim lngGreen As Long, lngBlue As Long
lngBlue = RGB(64, 224, 208)
lngGreen = RGB(127, 255, 212)
If Me.CourseNoID = "10" And Me.CourseStatus = "Completed" Then
Me.cmdPracticum.BackColor = RGB(64, 224, 208)
End If
The other status' would have different colors.
I have attached a screen grab that may make some sense of what I would like to do

I did have another post regarding this back in June 12 but the same happened, only showed when loaded:
http://www.access-programmers.co.uk/forums/showthread.php?t=228865&highlight=cmdbutton
Last edited: