jeremy0028
Technical User
I have a list box which looks up ProviderID(PK), First Name, Last Name, MI from the tbl called tbladdprovider
i'm trying to create a double click event whereby when I double clik providers name it will take me to the form called frmaddprovider which will display provider information.
I have the following code
Private Sub List0_DblClick(Cancel As Integer)
stDocName = "frmaddprovider"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord
End Sub
Every time i double click it takes me to last record on the form and not the actual provider any ideas
i'm trying to create a double click event whereby when I double clik providers name it will take me to the form called frmaddprovider which will display provider information.
I have the following code
Private Sub List0_DblClick(Cancel As Integer)
stDocName = "frmaddprovider"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord
End Sub
Every time i double click it takes me to last record on the form and not the actual provider any ideas