knowledge76
Registered User.
- Local time
- Today, 23:46
- Joined
- Jan 20, 2005
- Messages
- 165
Hello friends,
I have a problem with my vba code by applying the applyfilter property, my code which is listed below first open the query qithout using filter and then reopen the query to applyfilter. Is there anyway I can do it in one step?
I have a problem with my vba code by applying the applyfilter property, my code which is listed below first open the query qithout using filter and then reopen the query to applyfilter. Is there anyway I can do it in one step?
Code:
Private Sub Befehl38_Click()
On Error GoTo Befehl38_Click_fehler
Dim strdoc As String
strdoc = "SUM_BYCOUNTRY"
DoCmd.OpenQuery strdoc, acViewNormal
DoCmd.ApplyFilter , "[Country Repaired] ='GBR'"
Befehl38_Click_fehler:
Exit Sub
End Sub