Hi All,
I am now on the next part of my quest.
I have built my Form, which has used subforms to show my records and what I need to complete as the POL authority.
I am now trying to jazz the form up so I thought of adding a next record and previous record button.
I added two combo boxes called Next_Record and Previous_Button.
I selected code builder and added the following scripts.
Private Sub Next_Record_Click()
Me.POL_Ref.SetFocus
If (Me.POL_Ref.ListIndex = Me.POL_Ref.ListCount - 1) Then
Else
Me.POL_Ref.ListIndex = (Me.POL_Ref.ListIndex + 1)
End If
End Sub
Private Sub Previous_Button_Click()
Me.POL_Ref.SetFocus
If (Me.POL_Ref.ListIndex = 0) Then
Else
Me.POL_Ref.ListIndex = (Me.POL_Ref.ListIndex - 1)
End If
End Sub
I go onto the my report screen and press the buttons and nothing happens no error or anything.
I have tried to use the unique number in the POL_Ref field of my form?
I can't see the wood for the trees now.