J
Jologs
Hi:
I want to filter my subform (bound to table) when it loads. I've tried the
codes below but it returns "You cancelled the previous operation"
Private Sub Form_Load()
Me.FilterOn = True
Me.Filter = "[Status]='False'"
End Sub
[Status] is a checkbox.
Actually, before the main form loads I click a button from another form with
the following criteria (for the Main Form)
stLinkCriteria = "[Assignor]=" & "'" & Me![txtUserID] & "'"
I have tried adding the criteria for the subform but it prompts a screen
asking for the value for the subform
stLinkCriteria = "[Assignor]=""" & Me![txtUserID] & """ AND
Me![frmAssignment].Form![optStatus]= False")
Thanks in advance
I want to filter my subform (bound to table) when it loads. I've tried the
codes below but it returns "You cancelled the previous operation"
Private Sub Form_Load()
Me.FilterOn = True
Me.Filter = "[Status]='False'"
End Sub
[Status] is a checkbox.
Actually, before the main form loads I click a button from another form with
the following criteria (for the Main Form)
stLinkCriteria = "[Assignor]=" & "'" & Me![txtUserID] & "'"
I have tried adding the criteria for the subform but it prompts a screen
asking for the value for the subform
stLinkCriteria = "[Assignor]=""" & Me![txtUserID] & """ AND
Me![frmAssignment].Form![optStatus]= False")
Thanks in advance