B
BLTibbs
What is wrong with this code below? It works with either the category field
or the subcategory field but not with them both. What I am trying to do is
open GroupDetailsSubFrm and only show the records in that query for the
category and the subcategory on the original form... What am I doing wrong?
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "GroupDetailsSubFrm"
stLinkCriteria = "[Category]=" & Me![Category] And "[subCategory]=" &
Me![SubCategory]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Sub
or the subcategory field but not with them both. What I am trying to do is
open GroupDetailsSubFrm and only show the records in that query for the
category and the subcategory on the original form... What am I doing wrong?
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "GroupDetailsSubFrm"
stLinkCriteria = "[Category]=" & Me![Category] And "[subCategory]=" &
Me![SubCategory]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Sub