Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2005

Tip: Looking for answers? Try searching our database.

Query Search

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
V3M - 04 May 2005 17:56 GMT
I have a parts inventory database. In the database I have a query that
searches by part description. When I run the query a window pop ups and
requests to input a part description. If I put in the complete and exact name
of the part, I get the total number of that particular part in the table.
What I want to be able to do is input part of the actual description name in
the pop up window instead of the complete name and get the same results. In
other words if I'm searching for a modem, I want to be able to input modem or
mod and get the same results. I guess something like a wild search.

This is my SQL:        
SELECT tblSiteInventory.ID, tblSiteInventory.Region, tblSiteInventory.State,
tblSiteInventory.Site, tblSiteInventory.PartDescription,
tblSiteInventory.PartNumber, tblSiteInventory.[Total On Hand],
tblSiteInventory.[Total Repair], tblSiteInventory.Date, tblSiteInventory.Tech
FROM tblSiteInventory
WHERE (((tblSiteInventory.PartDescription)=[Input Part Description]));

Thanks for the help,
V3M (not an expert in Access)
Jim C. - 04 May 2005 19:50 GMT
Hi,

In your where statement, change the equal sign to like.  Then when you enter
the part name you can enter partial names along with wildcard characters (*)
for the parameter.  In your example you could then enter 'modem' or 'mod*' to
get the same results.  

Note that when doing this that 'mod' (no *) will only return a part with the
complete name of 'mod'.  You need the * in order to use a partial name.

Jim

> I have a parts inventory database. In the database I have a query that
> searches by part description. When I run the query a window pop ups and
[quoted text clipped - 15 lines]
> Thanks for the help,
> V3M (not an expert in Access)
V3M - 04 May 2005 20:31 GMT
Jim,

Thanks for your help. That worked.

Vic

> Hi,
>
[quoted text clipped - 27 lines]
> > Thanks for the help,
> > V3M (not an expert in Access)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.