User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 373,930 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,255 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 14746 | Replies: 3
Reply
Join Date: Feb 2005
Posts: 11
Reputation: nelly_1005 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
nelly_1005 nelly_1005 is offline Offline
Newbie Poster

Solution Create Access Database using SQL queries

  #1  
Feb 23rd, 2005
Hey guys,

Basically i want to create a database in Access 2002 that will hold names of functions of a mobile phone. When the user enters a search the databse should query the information held within it, display the appropriate search results.

It should be able to serach for precise function names entered such as Write Message,Inbox, Message Settings, Clear Cache memory.

Partial words such as WRI would display WRITE messgae, Write email, TEmplate, and INB would display INBOX,and also ambigiuos words such as message the results should be Inbox, Outbox, saved messages etc. all words that are related to that catergory.

I am slighlty confused as to how i go about making the different tables as i have never used Access before. Should i create different tables for each main function such as Messgaes and list all function names as records within the table?? or have a table for all ambigiuos words and anoterh for partial?? and how it should be queried using SQL.

If you could help me out and lead me to a right direction i would be grateful!!


THANKS! :lol:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2003
Location: Ohio
Posts: 778
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Rep Power: 7
Solved Threads: 19
Colleague
Zachery's Avatar
Zachery Zachery is offline Offline
The Geek Father

Re: Create Access Database using SQL queries

  #2  
Mar 8th, 2005
I'm no access wizzard, any reason you want to use access?

Realisticly, its got about a 20 user threshhold for multiple connections.

So if you are planning somthing big you might want to look into MSSQL PGSQL or MySQL
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.

Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: Create Access Database using SQL queries

  #3  
Mar 9th, 2005
To do the sort of thing you wnat, you will have to design the DB in one of the following fashions...

1) keyword tables.... have tables with the correct word/term....then have fields for all the additional alternatives and abbrv.
2) generate standard tables with the keywards in, then ensure that you have strong queries that contain all the variants and abbrv.

I'd actually suggest both.
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: VAIBHAV5107 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
VAIBHAV5107 VAIBHAV5107 is offline Offline
Newbie Poster

Solution Re: Create Access Database using SQL queries

  #4  
Nov 10th, 2007
Hi there,

You can use LIKE sql pattern matches in your embedded sql code of any HL Language.
There are two operators used with LIKE keyword. They are ' % ' ( for any no of characters after the character pattern) and ' _ ' (for a number of characters after the pattern).

For eg.

To search names partially in a table, its Vb code would look like this:

' other code as required
' ----------
wname=text1.text
rescordset.open "select name from tablename where name like '" & wname & "%'", connection_name,adOpenDynamic,adLockOptimistic,adCmdText
' or you can use this syntax
' rs is recordset name and cn is connection name
set rs=cn.Execute("select wname from tablename where name like '" & wname & "%'")")

It will 110% work I have used it.
Enjoy & Hav Fun ...................
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 6:01 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC