G
Guest
(Access project connected to SQL Server)
This shouldn't be this hard, lol...
Anyway, I have a form. I want to double click a text field and have it open
another form with that record. Simple, right? This is connected to a
datawarehouse, so there is not what I would call a regular index or key field
in quite a few of the tables, if that makes a difference. The code I have on
the double click event is:
Private Sub ITEM_SVCD_DblClick(Cancel As Integer)
Dim strDocName As String
Dim strCriteria As String
strCriteria = "[ITEM_SVCD]=" & Me.ITEM_SVCD
strDocName = "SVC_Item_Rollup"
DoCmd.OpenForm strDocName, , , strCriteria
End Sub
But when I fire the event, I get :
Run-tme error '3':
Closing delimeter not found for the string beginning at position 79 in the
command. The string begins with:')}) AS RS_586.
I haven't a clue.....
many thanks
This shouldn't be this hard, lol...
Anyway, I have a form. I want to double click a text field and have it open
another form with that record. Simple, right? This is connected to a
datawarehouse, so there is not what I would call a regular index or key field
in quite a few of the tables, if that makes a difference. The code I have on
the double click event is:
Private Sub ITEM_SVCD_DblClick(Cancel As Integer)
Dim strDocName As String
Dim strCriteria As String
strCriteria = "[ITEM_SVCD]=" & Me.ITEM_SVCD
strDocName = "SVC_Item_Rollup"
DoCmd.OpenForm strDocName, , , strCriteria
End Sub
But when I fire the event, I get :
Run-tme error '3':
Closing delimeter not found for the string beginning at position 79 in the
command. The string begins with:')}) AS RS_586.
I haven't a clue.....
many thanks