elsandalos
Registered User.
- Local time
- Today, 18:42
- Joined
- Jan 27, 2004
- Messages
- 22
Hi all,
I'm using a variable called recordstotal to hold the total number of records on a form. I only need to initialise it once, on form load and i'm using the following code:
Dim recordstotal As Integer
Private Sub Form_Load()
recordstotal = Me.RecordsetClone.RecordCount
ContractNaviText = "Browsing Contract " & CurrentRecord & " of " & recordstotal
End Sub
This is not working as it should. I'm sure that the recordset should be loaded at this point, but recordstotal is staying at 1. The code works elsewhere (if i link it to a button for example) but not here, where i need it.
Any advice much appreciated.
Pete
I'm using a variable called recordstotal to hold the total number of records on a form. I only need to initialise it once, on form load and i'm using the following code:
Dim recordstotal As Integer
Private Sub Form_Load()
recordstotal = Me.RecordsetClone.RecordCount
ContractNaviText = "Browsing Contract " & CurrentRecord & " of " & recordstotal
End Sub
This is not working as it should. I'm sure that the recordset should be loaded at this point, but recordstotal is staying at 1. The code works elsewhere (if i link it to a button for example) but not here, where i need it.
Any advice much appreciated.
Pete