Originally Posted by
JoeM
...serious programmers still follow the old relational database logic and will not use calculated fields in tables...
Excellent point! Tables really should be used for one purpose only, to store data, not to manipulate it! Manipulation always carries with it the possibility of corruption rearing its ugly head!
BTW, if you want to emulate the status bar. i.e. to show 'Record X of Y Number of Records,' you can use something like
Code:
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
DoCmd.GoToRecord , , acFirst
End Sub
This is needed because the Access Gnomes don't always load the entire RecordSet when a Form first opens. Then to update the count as you move from Record-to-Record:
For a Label
Code:
Private Sub Form_Current()
Me.LabelName.Caption = "Record " & CurrentRecord & " Of " & RecordsetClone.RecordCount & " Records"
End Sub
For Textbox
Code:
Private Sub Form_Current()
Me.TextboxName = "Record " & CurrentRecord & " Of " & RecordsetClone.RecordCount & " Records"
End Sub
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007