Hi guys
my brain isn’t what it used to be!
i have a form in which there is checkbox field. It receives its tick elsewhere. I have added a toggle button which shows the appropriate colour and caption when the form opens and displays a record. As I move through each record, the bottom changes colour to reflect the true/false condition of the checkbox. Shows red or green.
the code for the colour is in the form's on current settings and reads thus:
If WARN = 0 Then
Me!Toggle333.Caption = "No Warnings Issued"
Me!Toggle333.BackColor = RGB(0, 255, 0)
Else
'If WARN = -1 Then
Me!Toggle333.Caption = "Warnings Issued"
Me!Toggle333.BackColor = RGB(255, 0, 0)
End If
the on click property of the button itself is set to open another form, which it does.
There are two minor things that I can’t crack; firstly when I click the button to go to the other form, the button turns blue and upon my return to my first form, remains blue. Even as the checkbox contion changes when scrolling through records. The caption does however change according to the record but the button now stays blue if it’s been clicked. I knoww this form stays open and that my second form opens over it.
the second part of my problem is that my second form is controlled by a combo box, so when I open it, it has no record showing. It’s not the end of the world, but I would like it to be able to show info for the same record I was viewing in the first form.
the two forms use separate tables as their record sources but share a record number. I think It’s just a question of circumventing the combo box. If I knew how...
any my help would be most welcome