Angello Pimental
Registered User.
- Local time
- Today, 19:20
- Joined
- May 9, 2001
- Messages
- 92
The following code opens up a form to a particular record once a user clicks on the name of that particular record.
My problem is that I want to open up the entire record set but still initially have the record the user chose come up first.
Is this possible?
Any help would be great, Thnx
Private Sub Listofdomainnames_Click()
On Error GoTo Err_Listofdomainnames_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RealForm"
stLinkCriteria = "[Domain]=" & "'" & Me![Listofdomainnames] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Listofdomainnames_Click:
Exit Sub
Err_Listofdomainnames_Click:
MsgBox Err.Description
Resume Exit_Listofdomainnames_Click
End Sub
My problem is that I want to open up the entire record set but still initially have the record the user chose come up first.
Is this possible?
Any help would be great, Thnx
Private Sub Listofdomainnames_Click()
On Error GoTo Err_Listofdomainnames_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RealForm"
stLinkCriteria = "[Domain]=" & "'" & Me![Listofdomainnames] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Listofdomainnames_Click:
Exit Sub
Err_Listofdomainnames_Click:
MsgBox Err.Description
Resume Exit_Listofdomainnames_Click
End Sub