I'm using MS Access 2003. I have a form named frmClient which has a subform named frmGrantLoan. [frmGrantLoan's underlying recordset is a query which pulls from tblClient and tblGrantLoan as linked by a ClientID.] On frmGrantLoan I have an unbound text box named CRNum. I have the VBA code (shown below) executed by the On Current property of frmGrantLoan. I'm trying to show the user the current record number by displaying it in the text box named CRNum on frmGrantLoan.
I am getting the following error (attached jpg):
I've tried various things and this is the closest I've come to thinking I've done everything right.
Can someone help me troubleshoot this?
Thanks so much. JHite
[imgnothumb]http://bytes.com/attachments/attachment/6898d1360862555/errormsg.jpg[/imgnothumb]
Code:
Private Sub Form_Current() Me!CRNum.Value = Me.CurrentRecord End Sub
I've tried various things and this is the closest I've come to thinking I've done everything right.
Can someone help me troubleshoot this?
Thanks so much. JHite
[imgnothumb]http://bytes.com/attachments/attachment/6898d1360862555/errormsg.jpg[/imgnothumb]
Comment