On the form in question i have records from 5 related tables. In the footer of the form I have navigation controls (default navigation controls are turned off). When the form is launched, the navigation controls always appear disabled (grayed out). If I debug the code and put a break point where it enters the if conditions for the On Current event of the form and step through it, the navigation controls work fine. I do have a combobox on the form where the user can page through the records or type in characters of a customer they wish to view. Once a record is selected, the navigation controls work fine. Ideas?
Code:
On Error Resume Next If Me.CurrentRecord = 1 Then Me.cmdPrevious.Enabled = False Me.cmdFirst.Enabled = False Else Me.cmdPrevious.Enabled = True Me.cmdFirst.Enabled = True End If If Me.CurrentRecord >= Me.Recordset.RecordCount Then Me.cmdNext.Enabled = False Me.cmdLast.Enabled = False Else Me.cmdNext.Enabled = True Me.cmdLast.Enabled = True End If
Comment