Hi there few days ago I had a problem with changing the color of the label. Thanks to cheek.. it is resolved.
II want to:
when I click label on the form1 it changes the color, gives me the correct record after using the printbutton the form2 shows the same selected label with color changed.
I have tried something like:
II want to:
when I click label on the form1 it changes the color, gives me the correct record after using the printbutton the form2 shows the same selected label with color changed.
I have tried something like:
Code:
Dear Guys. I think I need to learn from very beginning.
I am trying to do the same affect on my second form. I mean. when I press lbl in form1 it changes the color and shows me good record. I wanted this effect to be like a mirror on the second form:
I have tried to use:
Code:Copy to clipboard
For Each lbl In Me.Controls 'dla każdej zmiennej w zestawie kotrolek tego formualrza
If TypeOf lbl Is Label Then
lbl.OnClick = "=LabelClick(" & Mid(lbl.Name, Len(LABEL_PREFIX) + 1) & ")"
DoCmd.OpenForm "Drukuj", acDesign, , , , acHidden
lbl.OnClick = "=LabelClick(" & Mid(lbl.Name, Len(Forms!Drukuj.Control("Etykieta")) + 1) & ")"
End If
Next
But it is not giving me anything.