Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 2nd, 2009, 02:37 PM
Moody-2000 Moody-2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 10 Moody-2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m 56 sec
Reputation Power: 0
Forms - Creating a Search Form

Hi,

I am currently working on a database for keeping a log of the 3000+ engineering drawings that are on record. I have them listed including by ID number including have a hyperlink to where they are located on the network and this is all well and good.

However, each drawing has a description attached to it as well (it is one of the columns in the table including all the information) and i need to create a form that will search for a display a keyword that is present in the descriptions and bring it together in one list. I'm sure that this isn't too difficult but i am very new to this program and have been severly struggling to accomplish this. Any help would be greatly appreciated.

Thanks,
Moody

Reply With Quote
  #2  
Old November 2nd, 2009, 03:20 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,886 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 1 h 18 m 41 sec
Reputation Power: 562
I suggest that you start out by either reading some online tutorials or perhaps viewing online video tutorials. If you enter the search terms ms access tutorial video in Google, you will find a wealth of such tutorials.

There are so many different ways to design a form to search for specific keywords that I wouldn't attempt to describe how in a post here.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #3  
Old November 2nd, 2009, 05:48 PM
June7 June7 is offline
Contributing User
Click here for more information.
 
Join Date: Apr 2009
Location: The Great Land
Posts: 536 June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 13 h 58 m 7 sec
Reputation Power: 124
Yes, this should not be too difficult to do and as don94403 suggests, go through some tutorials to get a better handle on VBA coding and SQL query structures.

Also, am not quite clear on what you want to produce from such a search. You say 'display a keyword that is present in the descriptions and bring it together in one list' - you want to return the descriptions? One idea to try when you get 'learned up' is to enter keyword in a textbox and then with SQL SELECT query find records that meet the WHERE clause criteria which might be (for one possibility):
"WHERE InStr([Description], '" & textbox & "') > 0".

So build some code and post for analysis when you encounter problems.

Last edited by June7 : November 2nd, 2009 at 05:52 PM.

Reply With Quote
  #4  
Old November 3rd, 2009, 10:14 AM
Moody-2000 Moody-2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 10 Moody-2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m 56 sec
Reputation Power: 0
well i did find a good tutorial video that walked through the creation of a basic search form and everything worked well, however this only searches for the beginning of the description.

A form was created that had an unbound text box with a command button.

The code on the command button was as follows:

Private Sub Command4_Click()
DoCmd.OpenQuery "mainquery", acViewNormal
End Sub

Then the Query "mainquery" was created with the required fields. Uner the fields that are to be searched, in this case description, the code: Like [Forms]![Search].[search] & "*" was placed.

Search being the name of the previous form and search being the name of the command button.

How can i manipulate this so that it will not only search for items beginning with the criteria but anywhere in the description.

Reply With Quote
  #5  
Old November 3rd, 2009, 12:51 PM
June7 June7 is offline
Contributing User
Click here for more information.
 
Join Date: Apr 2009
Location: The Great Land
Posts: 536 June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 13 h 58 m 7 sec
Reputation Power: 124
Use InStr function or place "*" before and after the search value.

Reply With Quote
  #6  
Old November 3rd, 2009, 12:54 PM
Moody-2000 Moody-2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 10 Moody-2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by June7
Use InStr function or place "*" before and after the search value.


ive tried placing the "*" everywhere and it does not seem to want to work, where would you usggest placing it?

or how would the Instr function code look

im sorry but i am awful with prgoramming

Reply With Quote
  #7  
Old November 3rd, 2009, 01:15 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,886 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 1 h 18 m 41 sec
Reputation Power: 562
Instead of:
Code:
Like [Forms]![Search].[search] & "*"  
do this:
Code:
Like "*" & [Forms]![Search].[search] & "*"  

The * is Access' wildcard character; it means "anything". So if you place it both before and after the characters you are searching for, it will find all records that contain your search term, with anything before it and anything after it. The & is Access' concatenation character, meaning that it connects 2 strings together, one after the other.

Keep reading tutorials and trying out techniques, you will soon overcome your issues with programming.

Reply With Quote
  #8  
Old November 3rd, 2009, 01:27 PM
Moody-2000 Moody-2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 10 Moody-2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m 56 sec
Reputation Power: 0
wow thanks so much,

over the past 2 days i have been going over tons of tutorials and the like and its been really helpful. The only thing that i was missing when i was attempting to do it was the second ampersand.

Again, thanks alot

Reply With Quote
  #9  
Old November 3rd, 2009, 08:55 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,886 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 1 h 18 m 41 sec
Reputation Power: 562
Glad you're making progress. The thing is, every language is different. In Javascript, the string concatenation operator is a plus sign! Just recently I was writing a little shell script in Linux and for the life of me, I couldn't remember how to concatenate 2 variables. Turns out, you just mash them together without a space. Who knew?!

Reply With Quote
  #10  
Old November 4th, 2009, 05:56 PM
Sneakz Sneakz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 90 Sneakz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 28 m 2 sec
Reputation Power: 1
Which distrobution are you using Don?

Reply With Quote
  #11  
Old November 4th, 2009, 07:58 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,886 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 1 h 18 m 41 sec
Reputation Power: 562
Quote:
Originally Posted by Sneakz
Which distrobution are you using Don?
Ubuntu 9-04.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Forms - Creating a Search Form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek