Here it is :
I had added this line : DoCmd.GoToRecord , , acNewRec
but it kinda creates problems with my application which i haven't figured out yet
Option Compare Database
Private Sub Form_Activate()
DoCmd.Maximize
End Sub
Private Sub Form_GotFocus()
DoCmd.Maximize
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
Me.ViewAll.Visible = False
Me.ViewMy.Visible = False
End Sub
Private Sub SignedInUser_Change()
Me.ViewAll.Visible = True
Me.ViewMy.Visible = True
GlobalSignedInUser = Me.SignedInUser.Value
Rem SCR #24
'GlobalLoginInd = 0
'GlobalNetworkID = fNetworkID()
'GlobalComputerName = fMachineName()
End Sub
Private Sub ViewAll_Click()
On Error GoTo Err_ViewAll_Click
Dim stDocName As String
Rem SCR #24
GlobalLoginInd = 1
'DoCmd.GoToRecord , , acNewRec
DoCmd.RunCommand acCmdSaveRecord
stDocName = "IPR - View current list - View all "
DoCmd.RunMacro stDocName
Exit_ViewAll_Click:
Exit Sub
Err_ViewAll_Click:
MsgBox Err.Description
Resume Exit_ViewAll_Click
End Sub
Private Sub ViewMy_Click()
On Error GoTo Err_ViewMy_Click
Dim stDocName As String
Rem SCR #24
GlobalLoginInd = 1
'DoCmd.GoToRecord , , acNewRec
DoCmd.RunCommand acCmdSaveRecord
MsgBox GlobalSignedInUser
stDocName = "IPR - View current list - View My"
DoCmd.RunMacro stDocName
Exit_ViewMy_Click:
Exit Sub
Err_ViewMy_Click:
MsgBox Err.Description
Resume Exit_ViewMy_Click
End Sub
I had added this line : DoCmd.GoToRecord , , acNewRec
but it kinda creates problems with my application which i haven't figured out yet
Option Compare Database
Private Sub Form_Activate()
DoCmd.Maximize
End Sub
Private Sub Form_GotFocus()
DoCmd.Maximize
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
Me.ViewAll.Visible = False
Me.ViewMy.Visible = False
End Sub
Private Sub SignedInUser_Change()
Me.ViewAll.Visible = True
Me.ViewMy.Visible = True
GlobalSignedInUser = Me.SignedInUser.Value
Rem SCR #24
'GlobalLoginInd = 0
'GlobalNetworkID = fNetworkID()
'GlobalComputerName = fMachineName()
End Sub
Private Sub ViewAll_Click()
On Error GoTo Err_ViewAll_Click
Dim stDocName As String
Rem SCR #24
GlobalLoginInd = 1
'DoCmd.GoToRecord , , acNewRec
DoCmd.RunCommand acCmdSaveRecord
stDocName = "IPR - View current list - View all "
DoCmd.RunMacro stDocName
Exit_ViewAll_Click:
Exit Sub
Err_ViewAll_Click:
MsgBox Err.Description
Resume Exit_ViewAll_Click
End Sub
Private Sub ViewMy_Click()
On Error GoTo Err_ViewMy_Click
Dim stDocName As String
Rem SCR #24
GlobalLoginInd = 1
'DoCmd.GoToRecord , , acNewRec
DoCmd.RunCommand acCmdSaveRecord
MsgBox GlobalSignedInUser
stDocName = "IPR - View current list - View My"
DoCmd.RunMacro stDocName
Exit_ViewMy_Click:
Exit Sub
Err_ViewMy_Click:
MsgBox Err.Description
Resume Exit_ViewMy_Click
End Sub