I have a form with tabs on it. Form some reason my code does not work until I use my find combobox to search, then it works? Example below, that code would normally disable the back button,i.e. previous record if you were already on the first record. It shows disabled , like I say until I search for another record?
No other interfering code and it's on the OncurrentEvent !
Solution:
No other interfering code and it's on the OncurrentEvent !
PHP:
'Record Selector Code.
If Me.CurrentRecord = 1 Then
Me.cmdback.Enabled = False
Me.cmdfirst.Enabled = False
Else
Me.cmdback.Enabled = True
Me.cmdfirst.Enabled = True
End If
Solution:
PHP:
Dim rst As DAO.Recordset
Dim lngCount As Long
Set rst = Me.RecordsetClone
With rst
.MoveFirst
.MoveLast
lngCount = .RecordCount
End With
Last edited: