473,320 Members | 1,853 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,320 software developers and data experts.

create a consecutive word search that acts on the second, any ideas how to do this?

Hi all,

I'm designing a database that captures the lessons learned from a set of projects completed by my company. The 'lessons' are broken down into 7 columns.

The database consists of a table of 'projects' and a table of 'lessons'.

The user interface is through a navigation form. This form allows data entry to both the project and lesson tables. There is another form with a keyword search through all the lessons.

+ The third and final question is that I have a keyword search implemented. That returns a set of relevant lessons in the database. I want to create a consecutive word search that acts on the second, any ideas how to do this? I know it's simple coding but I'm not sure how to reiterate the code!

Any help would be greatly appreciated.

Nessan
Apr 16 '15 #1
3 1380
Rabbit
12,516 Expert Mod 8TB
You're going to have to define consecutive word search... I don't know what that means
Apr 17 '15 #2
It's split into two questions really

1 - ((split to http://bytes.com/topic/access/answer...ultiple-tables ))

2 - How do I search a database using a keyword, and then enter another word into the same searchbox to refine the search further.

Essentially I have this code to search a set of tables:
Expand|Select|Wrap|Line Numbers
  1. Private Sub btnSearch1_Click()
  2.    On Error GoTo problem
  3.    Dim strsearch As String
  4.    Dim strText As String
  5. '
  6.    strText = Me.TxtSearch1.Value
  7.    strsearch = "SELECT * " & _
  8.       "FROM [tblCompany] " & _
  9.       "WHERE (([Company_name] LIKE ""*" & _
  10.          strText & "*"") OR(Quote_Type LIKE ""*" & _
  11.          strText & "*""))"
  12.    Me.RecordSource = strsearch
  13. '  
  14. End Sub
  15.  

And I'm wondering how do I incorporate a UNION to add a second table to the search? The 2nd table I want to search is tblContact
Apr 21 '15 #3
Rabbit
12,516 Expert Mod 8TB
Isn't number 1, that was split off into another question, the same question as number 2? I don't see any difference in the code posted and the question asked in both questions.
Apr 21 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Case Nelson | last post by:
Hi there I've just been playing around with some python code and I've got a fun little optimization problem I could use some help with. Basically, the program needs to take in a random list of no...
3
by: di | last post by:
I have a Access Database, and I would like to create a word document that (preferable would filter)links to ACCESS table or query. I would like to print the word document on the filtered record...
1
by: Kosic | last post by:
how to create a word document with javascript? read data from database and then write down in that document. Thx!
3
by: Michael Tkachev | last post by:
Hi Everybody! I have a problem. When I get a HTML of my page that I'm rendering. I need to generate a word-document from a html. And than I have to send this word-document to the users through...
2
by: Mohan Kumar via DotNetMonster.com | last post by:
I have a sequence of asp forms to take data from the user from which I have to create a word doc in a predefined format with the data inputted inserted appropraitely. How can I do this? --...
7
by: Daniel Walzenbach | last post by:
Hello, I want to create a Word XML file based on the input users make in a VB.NET application. I imagine creating a template in Word and saving it as a XML file. I then want to fill the...
2
by: correo | last post by:
Hello, I've built a search engine that queries a MySQL database. However, if I enter "foo bar", the engine will search for that phrase exactly, and will not find "bar foo" nor "foo something...
0
by: gopikrishnan | last post by:
Hi to all, i am developing a java project which workes in linux. I need to create a Word document through my java program, rep_path = --FIlePath-- fso = new File(rep_path); if (!...
4
by: Ang | last post by:
Hi, I'm writing the code to create a word doc, I referenced this link's code : http://support.microsoft.com/kb/316384/en-us But when i click the button, it will show the doc page but i want...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.