•
•
•
•
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 402,454 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,021 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: Programming Forums
Views: 1466 | Replies: 1
![]() |
•
•
Join Date: Jul 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I have an Access form that runs a search on a query and returns the results to a listbox on the same form. I have two question regarding the search functionality.
1. Is it possible to search for the exact value for instance I have a Movie rating column and if I put in G and search I get the results for G, PG and PG-13 when all I wanted were G movies..
2. Is it also possible to search starting with the first letter. For example if I put an S in the Movie title line it will only return Movies starting with the letter S and not every single Movie with an S in it.
Thanks in advance for any help it is greatly appriciated. :cheesy:
1. Is it possible to search for the exact value for instance I have a Movie rating column and if I put in G and search I get the results for G, PG and PG-13 when all I wanted were G movies..
2. Is it also possible to search starting with the first letter. For example if I put an S in the Movie title line it will only return Movies starting with the letter S and not every single Movie with an S in it.
Thanks in advance for any help it is greatly appriciated. :cheesy:
•
•
Join Date: Jun 2005
Location: Denmark, EU
Posts: 102
Reputation:
Rep Power: 4
Solved Threads: 3
You probably "search" you database using
The above means whatever may come before, value, whatever may come after.
To select only rows where a specific column equal 'G', you need to use
To select only rows where a specific column equal 'S' and then whatever, you could go
Of course is these different type searches is to be carried out form the same input search field, you need some sort of evaluation.
LIKE '%value%'The above means whatever may come before, value, whatever may come after.
To select only rows where a specific column equal 'G', you need to use
LIKE 'G'To select only rows where a specific column equal 'S' and then whatever, you could go
LIKE 'S%'Of course is these different type searches is to be carried out form the same input search field, you need some sort of evaluation.
Web Programmer
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access activation adsense advertising blogging blogs book business code coding combo copyright dani daniweb data development dreamweaver dropdownlist engine google html key malware marketing mcafee microsoft module monetization net news privacy product programming publishing reuse revenue rss search security serial spyware tags technical vista web wiki wysiwyg xml yahoo
- Search code in a database (Visual Basic 4 / 5 / 6)
- ADODC Search code (Visual Basic 4 / 5 / 6)
- code tags (DaniWeb Community Feedback)
- C# Code Question (C#)
- Search code ... (Visual Basic 4 / 5 / 6)
- search code not working!!! (VB.NET)
- find out the error in my code (Java)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: foxpro help
- Next Thread: need help in VB Code


Linear Mode