473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Searching for a string from a form

Please can someone provide the code for the following problem from a
video store database:

where:
tblVideo(VideoID, Title, Artist, etc)

what would be done in frmFindTitle to select the recordset that
matches some words in the title?

For example, the customer wants a song that has 'rain' in the title
but can't remember what the full title is.

So far as I have got:

txtSearchWord (text box to input search word)
Event: afterupdate calls vba code which will select records like the
search word.

PseudoCode:
select from tblVideo
Title
where
tblVideo title = wildcard txtSearchWord wildcard

Any help greatly appreciated.
Nov 12 '05 #1
2 1276
As far as getting the records you want, a query using Like '*entry*' in the
WHERE clause would get want you want. However, it all depends on where the
results are going as to how to build the code for it. Are you displaying it
on a form with bound controls? Into a Listbox? Report?

Mike Storr
www.veraccess.com

"Mark Thomas" <mt*****@beacon.surrey.sch.uk> wrote in message
news:b1**************************@posting.google.c om...
Please can someone provide the code for the following problem from a
video store database:

where:
tblVideo(VideoID, Title, Artist, etc)

what would be done in frmFindTitle to select the recordset that
matches some words in the title?

For example, the customer wants a song that has 'rain' in the title
but can't remember what the full title is.

So far as I have got:

txtSearchWord (text box to input search word)
Event: afterupdate calls vba code which will select records like the
search word.

PseudoCode:
select from tblVideo
Title
where
tblVideo title = wildcard txtSearchWord wildcard

Any help greatly appreciated.

Nov 12 '05 #2

"Mark Thomas" <mt*****@beacon.surrey.sch.uk> wrote in message
news:b1**************************@posting.google.c om...
Please can someone provide the code for the following problem from a
video store database:

where:
tblVideo(VideoID, Title, Artist, etc)

what would be done in frmFindTitle to select the recordset that
matches some words in the title?

For example, the customer wants a song that has 'rain' in the title
but can't remember what the full title is.

So far as I have got:

txtSearchWord (text box to input search word)
Event: afterupdate calls vba code which will select records like the
search word.

PseudoCode:
select from tblVideo
Title
where
tblVideo title = wildcard txtSearchWord wildcard

Any help greatly appreciated.


WHERE title LIKE txtSearchWord
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stewart Allen | last post by:
Hi there I'm trying to find part serial numbers between 2 numbers. The user selects a part number from a combo box and then enters a range of serial numbers into 2 text boxes and the resulting...
0
by: Jason | last post by:
I would like to be able to place a command button on a primary (parent) form that opens up a subform. I want to use this subform to search for or limit the recordset of data in the primary form. ...
0
by: Jason | last post by:
I would like to be able to place a command button on a primary (parent) form that opens up a subform. I want to use this subform to search for or limit the recordset of data in the primary form. ...
33
by: Geoff Jones | last post by:
Hiya I have a DataTable containing thousands of records. Each record has a primary key field called "ID" and another field called "PRODUCT" I want to retrieve the rows that satisy the following...
7
by: pbd22 | last post by:
Hi. I am somewhat new to this and would like some advice. I want to search my xml file using "keyword" search and return results based on "proximity matching" - in other words, since the search...
0
by: Howie | last post by:
Hi all. Hope you can help. I have created a form to edit existing records. I want to do two things: 1/ When the form opens, I want it to give a search field (searching on a string) which then...
3
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a...
0
by: Kassimu | last post by:
Hi guys out there, There is this database Iam creating, I have a table with 40 fields among which there are Date/time, Text, Number, Memo and Yes/No fields and I have created the form bound to that...
20
by: tkip | last post by:
Hello everyone. I have been working on this DB for quite some time and still can't figure out a way to do what I want to do. It's a database that keep track of drawings and engineering change etc....
4
by: aaronkmar | last post by:
Hello Bytes, I hope this post finds you well on this wonderful Friday! I've been kicking this code around for over a week now and cannot seem to find the correct syntax to handle all of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.