Topics |
(your on_click event for the button) On Error GoTo err_handle
sChangeSunform 0, "YOUR FORM NAME", True
Exit Sub err_handle:
(end on_click subroutine) |
(your on_click event for the button) Dim strSQL as String
On Error GoTo err_handle
'load the SQL statement into a variable because "me." statements from a prior form don't work when you open a new 'subform.
strSQL = "[YOUR FIELD HERE] = 'VALUE'" sChangeSunform 0, "YOUR FORM NAME:FILTER:" & strSQL, True
Exit Sub err_handle:
(end on_click subroutine) |