0
   

Making a search option

 
 
JKC
 
Reply Sun 11 Nov, 2012 06:57 pm
Hi, I have a question abot reading and outputting infromation in a search.

I have a spreadsheet (in txt form seperated by tabs) that can be opend to a spreadsheet. If opend as a spreadsheet it would have, say, 12 columns of information

(i.e.) First Name, Middle Name, Surname, address, Age, Gender... and so on.

I was hoping to design a program that would allow me to 1) choose which peramater(s) to search from 2) enter in my search term 3) have the full information listed om a table for all results

So if I choose to search by first name and put in 'Joe' all 'Joe' will come up followed by all other peramiters. If I search by surname 'Smith' it will come up with:
Alvin B Smith...
Bob J Smith....


Or I could choose both to narrow the results.

What I'm stuck on is reading the information from a txt file (the database is already created so no need for inputting) and outputting that information in a table in proper order.

Any suggestions welcomed!

Thanks folks! :-)
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 968 • Replies: 3
No top replies

 
jespah
 
  1  
Reply Mon 12 Nov, 2012 07:06 am
@JKC,
Search in which program? E. g. are you trying to do a search directly in Excel? If so, then I think you'd need to use VB code.

For larger databases, where you'd use SQL code, you would likely query using the LIKE function, e. g.

SELECT * FROM names
WHERE first_name like 'Joe%';
JKC
 
  1  
Reply Mon 12 Nov, 2012 07:49 am
@jespah,
I was hoping to do this in Javascript so I could eventually integrate it into a website. At the moment I have the info in a txt file seperated by tabs.
jespah
 
  1  
Reply Mon 12 Nov, 2012 07:50 am
@JKC,
Huh. Well, you're beyond my skill set, I'm afraid. Sorry.
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » Making a search option
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 02/11/2025 at 10:26:41