Hello,
I have Data that is pulled from an outside database. I have the data filtered by group number and date. half the data is copied onto on worksheet, the other half on another worksheet. Each work sheet specifies a date for their respective data. It works perfectly for the first date option. However, if I try any of the other 2 dates, it does not filter. (actually it takes away all of the data). Here is my code:
Here is my code for the other worksheet:
Any help would be great.
Thank you!
I have Data that is pulled from an outside database. I have the data filtered by group number and date. half the data is copied onto on worksheet, the other half on another worksheet. Each work sheet specifies a date for their respective data. It works perfectly for the first date option. However, if I try any of the other 2 dates, it does not filter. (actually it takes away all of the data). Here is my code:
Code:
ActiveSheet.ListObjects("Table_Query_from_BucketSQL").Range.AutoFilter Field _
:=15, Criteria1:="1"
ActiveSheet.ListObjects("Table_Query_from_BucketSQL").Range.AutoFilter Field _
:=14, Criteria1:="=*" & Sheets("JoAnn").Range("JoAnnDate").Value & "*"
Here is my code for the other worksheet:
Code:
ActiveSheet.ListObjects("Table_Query_from_BucketSQL").Range.AutoFilter Field _
:=15, Criteria1:="2"
ActiveSheet.ListObjects("Table_Query_from_BucketSQL").Range.AutoFilter Field _
:=14, Criteria1:="=*" & Sheets("JoAnn").Range("AmyDate").Value & "*"
Any help would be great.
Thank you!