BlueJacket
Registered User.
- Local time
- Today, 16:51
- Joined
- Jan 11, 2017
- Messages
- 90
I just noticed that when I open frmServiceChart from another form, frmMainSearch, that the search box in frmServiceChart no longer works. When I open up frmServiceChart from the Navigation Pane, it works as intended.
The code for opening up frmServiceChart from frmMainSearch is as follows:
The code for the combobox search is:
At least, these are the two pieces of code that I think are at hand. What is conflicting here and how do I fix it?
Thank you in advance.
The code for opening up frmServiceChart from frmMainSearch is as follows:
Code:
Private Sub lboMainSearchResults_DblClick(Cancel As Integer)
'Opens frmServiceChart for the selected property
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmServiceChart"
stLinkCriteria = "[PropertyID]=" & Me![lboMainSearchResults]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
The code for the combobox search is:
Code:
Private Sub cboGoToRecord_AfterUpdate()
'Searches properties based off the info entered in the GoToRecord searchbox
On Error Resume Next
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[PropertyID]=" & Me.cboGoToRecord.Value
Me.Bookmark = rst.Bookmark
End Sub
At least, these are the two pieces of code that I think are at hand. What is conflicting here and how do I fix it?
Thank you in advance.