Hi Shawny
To be honest the best way is to use code instead of a macro.
You can use the command button wizard to create the button if you wish. Using code is much more versatile than the macros. Here is an example.
Option Compare Database
Option Explicit
Dim Message As String
Dim DialogType As Integer
Dim Title As String
Dim Response As Integer
Private Sub cmdPrevious_Click()
On Error GoTo Err_cmdPrevious_Click
Message = "This is the First Record"
DialogType = vbOKOnly + vbExclamation
Title = "First Record Warning"
DoCmd.GoToRecord , , acPrevious
Exit_cmdPrevious_Click:
Exit Sub
Err_cmdPrevious_Click:
Response = MsgBox(Message,DialogType,Title)
Resume Exit_cmdPrevious_Click
End Sub
This event procedure would be assigned to the On Click of your command button.
hth
DJ
[This message has been edited by DJBummy (edited 08-19-2001).]
[This message has been edited by DJBummy (edited 08-19-2001).]