My form contains a drop-down box (code is below) which lists primary keys (sequential numbers) of records located in another form named RequestForm. When a user selects a number from the list, the user is taken into RequestForm to that record. (RequestForm is filtered to just show that record)
The problem is that although RequestForm is filtered to take the user to the specific record they select, the users are still able to move one record forward to a blank record. For example - They go into a specific record, but then they move their mouse wheel which takes them to the next record. Is there a way to filter RequestForm so that only the selected record (and not the selected record + one blank record) are available upon entering it. Thanks!
Private Sub goto1_AfterUpdate()
On Error GoTo Err_goto1_Click
Dim stLinkCriteria As String
stLinkCriteria = "[ID]= " & Me![goto1] & ""
DoCmd.OpenForm "RequestForm", , , stLinkCriteria
Exit_goto1_Click:
Exit Sub
Err_goto1_Click:
MsgBox Err.Description
Resume Exit_goto1_Click
End Sub
The problem is that although RequestForm is filtered to take the user to the specific record they select, the users are still able to move one record forward to a blank record. For example - They go into a specific record, but then they move their mouse wheel which takes them to the next record. Is there a way to filter RequestForm so that only the selected record (and not the selected record + one blank record) are available upon entering it. Thanks!
Private Sub goto1_AfterUpdate()
On Error GoTo Err_goto1_Click
Dim stLinkCriteria As String
stLinkCriteria = "[ID]= " & Me![goto1] & ""
DoCmd.OpenForm "RequestForm", , , stLinkCriteria
Exit_goto1_Click:
Exit Sub
Err_goto1_Click:
MsgBox Err.Description
Resume Exit_goto1_Click
End Sub