473,395 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

criteria that with a value containing an asterisk

I'm working with a form & a query that allows the user to filter the
data using several combo boxes. One of the combo boxes allows them to
select the first letter of a a particular field, and it will use that
first letter in the criteria of the query to include only records with
a value beginning with that letter. The tricky part is that one of the
possible values for that field is - *.* - not values I would have
chosen, but they are coming from another system, so I have no control
over it. If you select the * value, it ends up returning all of the
records. Is there any way I can still use this setup, and still filter
for records beginning with an asterisk? I tried enclosing the asterisk
in quotes, but it doesn't return any values. i'm stumped - any
suggestions?
Aug 4 '08 #1
2 9129
On Mon, 4 Aug 2008 05:02:50 -0700 (PDT), Coll wrote:
I'm working with a form & a query that allows the user to filter the
data using several combo boxes. One of the combo boxes allows them to
select the first letter of a a particular field, and it will use that
first letter in the criteria of the query to include only records with
a value beginning with that letter. The tricky part is that one of the
possible values for that field is - *.* - not values I would have
chosen, but they are coming from another system, so I have no control
over it. If you select the * value, it ends up returning all of the
records. Is there any way I can still use this setup, and still filter
for records beginning with an asterisk? I tried enclosing the asterisk
in quotes, but it doesn't return any values. i'm stumped - any
suggestions?
For just a leading asterisk, place the * within brackets.

Like "[*]" & "*"

For the *,* combination, use:
Like "[*]" & "," & "[*]" & "*"
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aug 4 '08 #2
On Aug 4, 10:46*am, fredg <fgutk...@example.invalidwrote:
On Mon, 4 Aug 2008 05:02:50 -0700 (PDT), Coll wrote:
I'm working with a form & a query that allows the user to filter the
data using several combo boxes. One of the combo boxes allows them to
select the first letter of a a particular field, and it will use that
first letter in the criteria of the query to include only records with
a value beginning with that letter. The tricky part is that one of the
possible values for that field is - *.* - not values I would have
chosen, but they are coming from another system, so I have no control
over it. If you select the * value, it ends up returning all of the
records. Is there any way I can still use this setup, and still filter
for records beginning with an asterisk? I tried enclosing the asterisk
in quotes, but it doesn't return any values. i'm stumped - any
suggestions?

For just a leading asterisk, place the * within brackets.

Like "[*]" & "*"

For the *,* combination, use:
Like "[*]" & "," & "[*]" & "*"
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Works great - thank so much!!
Aug 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Wright | last post by:
I want to build an email subject containing text and a form field. Have have got so far but all I seem to be able to do is generate another page in the browser with a text string. (code attached)...
2
by: John Smith | last post by:
This is what I'm trying to do: In a form, a user enters a value (e.g. John) and clicks on submit. Submit opens up a query with one of its values (e.g. Name) set to the value of the control...
4
by: ShyGuy | last post by:
I have a table with 4 fields. Three are used for criteria. I can get the DLookup to work with 1 criteria with the following but can't get it to work with 2 or three. NumofAppts = DLookup("",...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
5
by: cai_rongxi | last post by:
Anyone has the solution to the question "Given an array a with value 1...N, find a repeted value" in C code? Thanks a lot
4
by: Jerome | last post by:
Hi all, I'm trying to use forward declaration with value class but I don't succeed in compiling my (quite simple) sample code. This is my code I'm trying to compile (Visual Studio 2003) ...
6
by: bjaj | last post by:
Hi How do I use a boolean criterian with the funktion DLookup ? I know the syntax for strings, numeric and date as follows For numerical values: DLookup("FieldName" , "TableName" ,...
2
by: JamesQ | last post by:
Hello there, I have a dropdown on a form which i use as a criteria for a query. However the field being searched contains many entries - it holds a list of subject choices - so when i pass a value...
3
by: Man4ish | last post by:
How can we sort the map with value? Generally maps are sorted by key but i need map to be sorted by value. How comparator can be used to do such thing. Regards Manish
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.