J
Jean-Paul
I wrote this code:
If [Forms]![verslagen].[Vragen]!Selectievakje15 = False Then
Me!teller = Me!teller - 1
If MsgBox("Opmerking?", vbOKOnly, "Let op!!") = vbOK Then
[Forms]![verslagen]![Vragen].Form!Selectievakje15 = True
[Forms]![verslagen]![Vragen].Form!Remarks_tekst.Visible = True
[Forms]![verslagen]![Vragen].Form!Bewaren.Enabled = True
[Forms]![verslagen]![Vragen].Form!Remarks.Visible = True
[Forms]![verslagen]![Vragen].Form!Remarks_tekst.Caption = "Opmerk:"
[Forms]![verslagen]![Vragen].Form!Remarks = ""
[Forms]![verslagen]![Vragen].Form!Remarks.SetFocus
End If
Else
[Forms]![verslagen].[Sub_Bedrijsgegevens].Visible = False
[Forms]![verslagen].[Vragen].Visible = False
[Forms]![verslagen].[Opdrachten].Visible = True
End If
I expect Remarks to get focus and the cursor is put into this entryfield.
But, not so
I get focus on the pushbutton that launches this code.
What am I doning wrong?
If [Forms]![verslagen].[Vragen]!Selectievakje15 = False Then
Me!teller = Me!teller - 1
If MsgBox("Opmerking?", vbOKOnly, "Let op!!") = vbOK Then
[Forms]![verslagen]![Vragen].Form!Selectievakje15 = True
[Forms]![verslagen]![Vragen].Form!Remarks_tekst.Visible = True
[Forms]![verslagen]![Vragen].Form!Bewaren.Enabled = True
[Forms]![verslagen]![Vragen].Form!Remarks.Visible = True
[Forms]![verslagen]![Vragen].Form!Remarks_tekst.Caption = "Opmerk:"
[Forms]![verslagen]![Vragen].Form!Remarks = ""
[Forms]![verslagen]![Vragen].Form!Remarks.SetFocus
End If
Else
[Forms]![verslagen].[Sub_Bedrijsgegevens].Visible = False
[Forms]![verslagen].[Vragen].Visible = False
[Forms]![verslagen].[Opdrachten].Visible = True
End If
I expect Remarks to get focus and the cursor is put into this entryfield.
But, not so
I get focus on the pushbutton that launches this code.
What am I doning wrong?