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_Cli ck()
Me.POL_Ref.SetF ocus
If (Me.POL_Ref.Lis tIndex = Me.POL_Ref.List Count - 1) Then
Else
Me.POL_Ref.List Index = (Me.POL_Ref.Lis tIndex + 1)
End If
End Sub
Private Sub Previous_Button _Click()
Me.POL_Ref.SetF ocus
If (Me.POL_Ref.Lis tIndex = 0) Then
Else
Me.POL_Ref.List Index = (Me.POL_Ref.Lis tIndex - 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.
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_Cli ck()
Me.POL_Ref.SetF ocus
If (Me.POL_Ref.Lis tIndex = Me.POL_Ref.List Count - 1) Then
Else
Me.POL_Ref.List Index = (Me.POL_Ref.Lis tIndex + 1)
End If
End Sub
Private Sub Previous_Button _Click()
Me.POL_Ref.SetF ocus
If (Me.POL_Ref.Lis tIndex = 0) Then
Else
Me.POL_Ref.List Index = (Me.POL_Ref.Lis tIndex - 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.
Comment