Microsoft Office 2007 Access Queries

DrToxic

New member
Local time
4:05 AM
Messages
105
Location
Network:\home\Suzanne\
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 Computer

Computer Manufacturer/Model Number
HomeBuild (CodeNamed "Suzanne")
OS
Micro$oft Windows 7 Ultimate x64
CPU
Intel Core2Duo (2.66GHz autoclocked to 3.00GHz)
Motherboard
Gigabyte GA-X38-DS5
Memory
4gb DDR2 (2+2gb)
Graphics Card(s)
NVidia 8800gt + Generic Radeon
Sound Card
OnBoard (see Motherboard), Azalia codec enabled
Monitor(s) Displays
LG Flatron L197WH, Dell UltraSHARP 17", ACER V193W
Screen Resolution
1440x900x32 1440x900x32 1024x768x32
Hard Drives
500GB Sata (3.5")
500GB Sata (3.5")
160GB Sata (2.5")
PSU
NeoPower 550
Case
iCute
Cooling
Air (through Larger-than-needed heatsyncs)
Keyboard
Apple Aluminium Keyboard
Mouse
Standard Microsoft 3 button mouse with scroll wheel
Internet Speed
50mb/s Virgin Media
Other Info
got 4 PC's... need more space to list them.
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Win7-64
CPU
Intel i7-3770S
Motherboard
ASUS P8Z77-M
Memory
16GB
Graphics Card(s)
nVidia GT630
Sound Card
onboard
Monitor(s) Displays
dual
Screen Resolution
1920x1200 (primary) 1050x1680 (secondary)
Hard Drives
128GB SSD (boot)
64GB SSD (Temp/My Documents)
500GB (photos/videos)
1TB (rendered video, backups)
PSU
650W
Case
Thermaltake A30
Cooling
Thermaltake
Keyboard
Logitech Lighted
Mouse
Kensington Expert Mouse (trackball)
Internet Speed
FIOS 35/35
Antivirus
MS Security Essentials
Browser
Chrome (beta)
ah, thank you bbinnard. :)

Noob question alert!: Where would I put the SQL in M$ access '07?
 

My Computer

Computer Manufacturer/Model Number
HomeBuild (CodeNamed "Suzanne")
OS
Micro$oft Windows 7 Ultimate x64
CPU
Intel Core2Duo (2.66GHz autoclocked to 3.00GHz)
Motherboard
Gigabyte GA-X38-DS5
Memory
4gb DDR2 (2+2gb)
Graphics Card(s)
NVidia 8800gt + Generic Radeon
Sound Card
OnBoard (see Motherboard), Azalia codec enabled
Monitor(s) Displays
LG Flatron L197WH, Dell UltraSHARP 17", ACER V193W
Screen Resolution
1440x900x32 1440x900x32 1024x768x32
Hard Drives
500GB Sata (3.5")
500GB Sata (3.5")
160GB Sata (2.5")
PSU
NeoPower 550
Case
iCute
Cooling
Air (through Larger-than-needed heatsyncs)
Keyboard
Apple Aluminium Keyboard
Mouse
Standard Microsoft 3 button mouse with scroll wheel
Internet Speed
50mb/s Virgin Media
Other Info
got 4 PC's... need more space to list them.
Back
Top