Hi
I'm not liking the built in nav button placement on the screen so want to put my own in.
MS advise how to do it here:
http://support.microsoft.com/kb/104683
but it doesn't include an add new button.
what would I add to the code to get this function for forms and subforms.
Thanks
Kev
I'm not liking the built in nav button placement on the screen so want to put my own in.
MS advise how to do it here:
http://support.microsoft.com/kb/104683
Code:
Option Compare Database
'*******************************************
' MODULE DECLARATION SECTION
'*******************************************
Option Explicit
Dim RetVal As Variant
'*******************************************
' MODULE FUNCTIONS
'*******************************************
Function GotoFirstRecord()
RetVal = GotoRecord(A_FIRST)
End Function
Function GotoLastRecord()
RetVal = GotoRecord(A_LAST)
End Function
Function GotoNextRecord()
RetVal = GotoRecord(A_NEXT)
End Function
Function GotoPrevRecord()
RetVal = GotoRecord(A_PREVIOUS)
End Function
Function GotoFirstSubRecord(SubControlName As String)
DoCmd GoToControl SubControlName
RetVal = GotoFirstRecord()
End Function
Function GotoLastSubRecord(SubControlName As String)
DoCmd GoToControl SubControlName
RetVal = GotoLastRecord()
End Function
Function GotoNextSubRecord(SubControlName As String)
DoCmd GoToControl SubControlName
RetVal = GotoNextRecord()
End Function
Function GotoPrevSubRecord(SubControlName As String)
DoCmd GoToControl SubControlName
RetVal = GotoPrevRecord()
End Function
Function GotoRecord(Direction)
On Error Resume Next
DoCmd GotoRecord, , Direction
End Function
but it doesn't include an add new button.
what would I add to the code to get this function for forms and subforms.
Thanks
Kev