E
Erin
Hi there, i have an entry form with the following code on a command button to
add a new record. This button works for some users but not others, any ideas?
could it be a security setting?
Private Sub cmdAddnew_Click()
On Error GoTo Err_cmdAddnew_Click
DoCmd.GoToRecord , , acNewRec
Me!ProjectID = DMax("[ProjectID]", "[MainTracking]") + 1
Me.Project_Pre2007 = Me.ProjectID
Me.LinkToReport = "E:\Library\Reports\" & [Project#Pre2007] & ".pdf"
Me.DateEntered = Date
Exit_cmdAddnew_Click:
Exit Sub
Err_cmdAddnew_Click:
MsgBox Err.Description
Resume Exit_cmdAddnew_Click
End Sub
add a new record. This button works for some users but not others, any ideas?
could it be a security setting?
Private Sub cmdAddnew_Click()
On Error GoTo Err_cmdAddnew_Click
DoCmd.GoToRecord , , acNewRec
Me!ProjectID = DMax("[ProjectID]", "[MainTracking]") + 1
Me.Project_Pre2007 = Me.ProjectID
Me.LinkToReport = "E:\Library\Reports\" & [Project#Pre2007] & ".pdf"
Me.DateEntered = Date
Exit_cmdAddnew_Click:
Exit Sub
Err_cmdAddnew_Click:
MsgBox Err.Description
Resume Exit_cmdAddnew_Click
End Sub