K
Karen
I have a macro on a subform control to requery a combo box in Access 2000
MsgBox Provider is not on list. Please Add.
OpenForm Opens a form to add provider to the provider table
SetValue Item: [Forms]![frmIntake]![frmProvider]![ProviderId]
Expression: 0
Requery ProviderID
frmIntake is the main form. frmProvider is the subform. ProviderID is the
combo box on the subform. The combo box row source is from the Provider
table.
When the macro runs, I receive the following error:
You can't use the ApplyFilter action on this window.
• You tried to use the ApplyFilter action or method, but you didn't apply
the filter to a table, query, form, or report.
• You may have applied the filter to a form, but the form wasn't open in
Form or Datasheet view.
• You may have applied the filter to a report but didn't use the ApplyFilter
action in a macro specified by the OnOpen property setting.
Use the SelectObject action or method to select the table, query, form, or
report before applying the filter.
I reviewed an article on Microsoft Office Access Knowledge Base web site
that suggests replacing Requery action with RunCommand action and to set the
action argument set to Run.
This did not work.
This exact same macro works in Access 2002. It does not work in Access 2000.
Please help.
MsgBox Provider is not on list. Please Add.
OpenForm Opens a form to add provider to the provider table
SetValue Item: [Forms]![frmIntake]![frmProvider]![ProviderId]
Expression: 0
Requery ProviderID
frmIntake is the main form. frmProvider is the subform. ProviderID is the
combo box on the subform. The combo box row source is from the Provider
table.
When the macro runs, I receive the following error:
You can't use the ApplyFilter action on this window.
• You tried to use the ApplyFilter action or method, but you didn't apply
the filter to a table, query, form, or report.
• You may have applied the filter to a form, but the form wasn't open in
Form or Datasheet view.
• You may have applied the filter to a report but didn't use the ApplyFilter
action in a macro specified by the OnOpen property setting.
Use the SelectObject action or method to select the table, query, form, or
report before applying the filter.
I reviewed an article on Microsoft Office Access Knowledge Base web site
that suggests replacing Requery action with RunCommand action and to set the
action argument set to Run.
This did not work.
This exact same macro works in Access 2002. It does not work in Access 2000.
Please help.