Hi everyone,
I need some serious help. I just cant figure out what is going on?
First, I am not an expert but I am building and learning database at the same time.
I have a search form that searches the inventory from a table and the search results are shows at the list box below. When the user double clicks an item within the search, it opens up another form with is already populated with the details.
The issue that I am having is that after double clicking an item, the new form is not always populated with the info. from the table. Sometimes it does for certain records and sometime it does not, there is no pattern.
Any help is greatly appreciated.
Below is my code for the double click in the list box, sure sure if the problem is this.
Private Sub SearchResults_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmListofItems"
stLinkCriteria = "[ContractInitiativeID]= " & Me![SearchResults]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
I need some serious help. I just cant figure out what is going on?
First, I am not an expert but I am building and learning database at the same time.
I have a search form that searches the inventory from a table and the search results are shows at the list box below. When the user double clicks an item within the search, it opens up another form with is already populated with the details.
The issue that I am having is that after double clicking an item, the new form is not always populated with the info. from the table. Sometimes it does for certain records and sometime it does not, there is no pattern.
Any help is greatly appreciated.
Below is my code for the double click in the list box, sure sure if the problem is this.
Private Sub SearchResults_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmListofItems"
stLinkCriteria = "[ContractInitiativeID]= " & Me![SearchResults]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub