Solved

Hash sign in me.filter expresion

Posted on 2015-02-16
2
105 Views
Last Modified: 2016-02-10
Microsoft Access 2013

Hi.

Following code fails because of the  # character (hash sign).
Me.Filter = "[Template Name] like '*template #2*'"
Me.FilterOn = True

Open in new window


How do I deal with this?
0
Comment
Question by:peispud
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40611966
Hi,

have you tried

Me.Filter = "[Template Name] like '*template [#]2*'"

https://msdn.microsoft.com/en-us/library/office/gg251796(v=office.15).aspx

Regards
0
 

Author Comment

by:peispud
ID: 40611978
Me.Filter = "[Template Name] like '*template [#]2*'"
Me.FilterOn = True

Thanks.

Found the solution there.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Set WorkSheet  not Working 9 44
error in For & Next statements 4 24
Filtering - Visible Rows 22 28
query sort by digit 5 12
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question