Eddie Mason
Registered User.
- Local time
- Today, 14:17
- Joined
- Jan 31, 2003
- Messages
- 142
I have placed a filter button on a form as a filter and written the following on-click event procedure:
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdApplyFilterSort
Me.Filter = "ACCOUNT_DO_NOT_EMAIL = 'HS'"
Me.FilterOn = True
When I click the filter button I get a blank message box titled 'Microsoft Access" and an OK button, when closed the filter works perfectly.
I have checked this procedure in other forms and it works without showing the blank message box.
The only difference with this form is that its control source is a union query.
Can anyone suggest a way of losing the message box?
Kind regards,
Eddie
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdApplyFilterSort
Me.Filter = "ACCOUNT_DO_NOT_EMAIL = 'HS'"
Me.FilterOn = True
When I click the filter button I get a blank message box titled 'Microsoft Access" and an OK button, when closed the filter works perfectly.
I have checked this procedure in other forms and it works without showing the blank message box.
The only difference with this form is that its control source is a union query.
Can anyone suggest a way of losing the message box?
Kind regards,
Eddie