C
Clddleopard
I have this code for a not in list event:
If MsgBox("Do you want to add " & [NewData] & "to the list?", vbYesNo, "Add
A Program") = vbYes Then
DoCmd.OpenForm "ProgramInfoPopup", acNormal, , , acFormAdd, acDialog, NewData
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
The ProgramInfoPopup form has this code in its OnLoad Event:
Dim NewData As String
Me![ProgramName] = Me.OpenArgs
End Sub
When I close the Programinfopopup form after putting the new data in, the
original form advances to the next record EVEN THOUGH I have the Tab property
set to cycle Current Record.
What am I missing?
If MsgBox("Do you want to add " & [NewData] & "to the list?", vbYesNo, "Add
A Program") = vbYes Then
DoCmd.OpenForm "ProgramInfoPopup", acNormal, , , acFormAdd, acDialog, NewData
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
The ProgramInfoPopup form has this code in its OnLoad Event:
Dim NewData As String
Me![ProgramName] = Me.OpenArgs
End Sub
When I close the Programinfopopup form after putting the new data in, the
original form advances to the next record EVEN THOUGH I have the Tab property
set to cycle Current Record.
What am I missing?