473,471 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Query Question

Alireza355
86 New Member
Dear all,

I am tring to have a query that returns all the rows beginning with a character to the end of the table.

Example:

Alfa
Beta
Charlie
David
Easy
Fox
Golf
Honey

results I want is: when entering as criteria: D

David
Easy
Fox
Golf
Honey

I tried using this: Like [forms]![frmSearch]![txtSearchField] & "*"

But this only returns all items starting with D

Thanx a lot.
Apr 8 '09 #1
5 1134
ADezii
8,834 Recognized Expert Expert
@Alireza355
Try the following as a Criteria:
Expand|Select|Wrap|Line Numbers
  1. >=[Forms]![frmSearch]![txtSearchField] & "*"
Apr 8 '09 #2
Alireza355
86 New Member
Thank you so much.

It worked...
Apr 9 '09 #3
ADezii
8,834 Recognized Expert Expert
@Alireza355
You are quite welcome.
Apr 9 '09 #4
OldBirdman
675 Contributor
Isn't the trailing "*" superfluous? Searching for >="R" or >="R*" would be the same because * is lower than "A" in the ASCII table. If the * is a wildcard character, doesn't if have to be used with the keyword "Like"?
Apr 9 '09 #5
ADezii
8,834 Recognized Expert Expert
@OldBirdman
I think you may be right on this one OldBirdman, nice catch! BTW, no luck on Downloading the DB, so I gave you my E-Mail Address as a Reply to your PM.
Apr 9 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
2
by: mmitchell_houston | last post by:
I'm working on a .NET project and I need a single query to return a result set from three related tables in Access 2003, and I'm having trouble getting the results I want. The details: ...
3
by: rinu911 | last post by:
hi all I am tring to insert a values to a table by checking if the value is there in the table already but it gives me this error "Query input must contain at least one table or query" ...
4
by: WolverYanks | last post by:
SELECT Dates., Sum(1) AS FROM Dates LEFT JOIN ON Dates. = . WHERE (((.)<)) GROUP BY Dates.; I'm doing a sports database, for entertainment and to learn Access, so hopefully this is an easy...
5
by: leelotis | last post by:
Hi im doing the following query SELECT * FROM networkinfo JOIN tblimage WHERE networkinfo.network LIKE '$data' && networkinfo.network = tblimage.imgdata && networkinfo.category = '$category' so...
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
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.