Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Microsoft Office 2007 Access Queries


22 Oct 2011   #1

Micro$oft Windows 7 Ultimate x64
 
 
Microsoft Office 2007 Access Queries

Hello. I am writing an Access Database which will hold a lot of information about software, books and whatever else I am going to store in there. (Yes, Data entry will take a long time, but not a problem).

I have made a query which will search the Books database for Author, and I was wondering how I can make it a little less accurate. Too weird? let me explain.

So far, It searches for the author using Exact Matching from the input box in the query
Code:
[Search for author by the name of:]
for example, when I want to search for Phillip Pullman, the way that Calibre added the author names, I have to type (Exactly, letter for letter) "Pullman, Philip". Is it possible to make it less accurate so It will bring back results when I search for "Philip" or "pullman" or "philip pullman"?


Thanks in advance,
DrToxic


My System SpecsSystem Spec
.

22 Oct 2011   #2

Win7-64
 
 

Yes, you can do this. The key is to use the * or ? character to represent, respectively, any character string or any single character. Put these in the Criteria part of the query and you should be able to get what you want. For example

Like "b???" will get all names that are 4 letters long and the begin with b

Like "bea*" will get all names of any length that start with bea

Here is the actual SQL query code for a query that works:

SELECT [Non-GrantParticipants].Last
FROM [Non-GrantParticipants]
WHERE ((([Non-GrantParticipants].Last) Like "b???"));
My System SpecsSystem Spec
23 Oct 2011   #3

Micro$oft Windows 7 Ultimate x64
 
 

ah, thank you bbinnard.

Noob question alert!: Where would I put the SQL in M$ access '07?
My System SpecsSystem Spec
.


Reply

 Microsoft Office 2007 Access Queries




Thread Tools



Similar help and support threads for2: Microsoft Office 2007 Access Queries
Thread Forum
Solved Microsoft Office 2007 ribbon too big Microsoft Office
Microsoft office 2007 updates? Windows Updates & Activation
Solved Microsoft Office Outlook 2007 problem when using Microsoft Office Microsoft Office
Microsoft Office 2007 Re-installation Microsoft Office
Microsoft office 2007 Microsoft Office
Microsoft Office 2007 lost cd key Microsoft Office
Microsoft Office 2007 License Microsoft Office

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:21 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33