I have a form that closes records and allows the DB to calculate a simple interest fee to be billed. My users want to bet able to use the enter key to preform the following functions.
The button right now
Private Sub Command14_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.DateClosed = Date
Me.IsClosed = 1
End Sub
Private Sub Command14_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.InterestFee = Me.IntTotal
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
after the DateClosed the InterestFee is set. The IntTotal comes from a query that needs to have the DateClosed in it. If I put all the code in one action it does not seem to execute the Me.InterestFee = Me.IntTotal . I wonder if there is an easy way to do this. I have the users using thier mouse to execute the code now. The would like to use the Enter key.
Thanks
Kenny
The button right now
Private Sub Command14_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.DateClosed = Date
Me.IsClosed = 1
End Sub
Private Sub Command14_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.InterestFee = Me.IntTotal
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
after the DateClosed the InterestFee is set. The IntTotal comes from a query that needs to have the DateClosed in it. If I put all the code in one action it does not seem to execute the Me.InterestFee = Me.IntTotal . I wonder if there is an easy way to do this. I have the users using thier mouse to execute the code now. The would like to use the Enter key.
Thanks
Kenny