H
Hank
Whats is wrong with the following. I am trying to open a form and display the
correct record based on the value of a combobox. I also need all of the
records to appear in the opened form so additional entries can be made but
would like it to open with the correct record shown
Code Follows:
Private Sub CustCmb_DblClick(Cancel As Integer)
Dim stLinkCriteria As String
Dim stDocName As String
stLinkCriteria = "[CompanyName] = " & Me.CustCmb & ""
stDocName = "Customers"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thank Everyone for all of your assistance. I am still learning!!
correct record based on the value of a combobox. I also need all of the
records to appear in the opened form so additional entries can be made but
would like it to open with the correct record shown
Code Follows:
Private Sub CustCmb_DblClick(Cancel As Integer)
Dim stLinkCriteria As String
Dim stDocName As String
stLinkCriteria = "[CompanyName] = " & Me.CustCmb & ""
stDocName = "Customers"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thank Everyone for all of your assistance. I am still learning!!