pullmyefinger
Registered User.
- Local time
- Today, 16:48
- Joined
- Feb 26, 2011
- Messages
- 37
Sub CurrentFormRecord(frm As Form)
Dim lngrecordnum As Long
lngrecordnum = frm.CurrentRecord
End Sub
=======================================
The code above is supposedly a way to store the current record of a table tied to a Form???
1. what the heck is (frm as Form) in the Sub? what form?
2. if I have a Form called X and a Table called Y that is tied to the Form, how do I integrate these in the example above?? Do I have to call this Sub every time I change records????
3. also have a command button that deletes records out of table Y in form X. When I delete a record(s), WHAT do I have to do to Correctly Update the number of Records in the Y table?? (I know there is a dcount() Fn, and a .movelast and other stuff
This is all I have to do to have this thing done. Hope someone can Help..
Dim lngrecordnum As Long
lngrecordnum = frm.CurrentRecord
End Sub
=======================================
The code above is supposedly a way to store the current record of a table tied to a Form???
1. what the heck is (frm as Form) in the Sub? what form?
2. if I have a Form called X and a Table called Y that is tied to the Form, how do I integrate these in the example above?? Do I have to call this Sub every time I change records????
3. also have a command button that deletes records out of table Y in form X. When I delete a record(s), WHAT do I have to do to Correctly Update the number of Records in the Y table?? (I know there is a dcount() Fn, and a .movelast and other stuff
This is all I have to do to have this thing done. Hope someone can Help..
Last edited: