D
Deuce Sapp
I have a dataform that shows the specifics for a service contract. I have a
subform that shows a datasheet view of the machines that covered by that
contract. I am trying to create an Event if you double click the serial
number in the datasheet subform that will bring up another form to edit the
machine. I have the event working, I am having difficulty creating the
filter (the value of the serial number I double clicked). Here is what I
tried:
Private Sub Serial_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "edit_equip"
stLinkCriteria = "[Serial]=" & Me![Serial]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
If I comment out the stLinkCriteria line it works great (just not filtered).
Deuce
subform that shows a datasheet view of the machines that covered by that
contract. I am trying to create an Event if you double click the serial
number in the datasheet subform that will bring up another form to edit the
machine. I have the event working, I am having difficulty creating the
filter (the value of the serial number I double clicked). Here is what I
tried:
Private Sub Serial_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "edit_equip"
stLinkCriteria = "[Serial]=" & Me![Serial]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
If I comment out the stLinkCriteria line it works great (just not filtered).
Deuce