Hi
basically i got a program in VB6 that can read in and store information on employees and it can read these back out to a set up form , i have navigation buttons
but i need a search feature and a way to show this on screen, how wouldi go about this , i dont really have a clue been looking but not found any thing , also how do i print the whole txt file and then the information searched i know it had so to with the
Print . function
6 983
Hi
basically i got a program in VB6 that can read in and store information on employees and it can read these back out to a set up form , i have navigation buttons
but i need a search feature and a way to show this on screen, how wouldi go about this , i dont really have a clue been looking but not found any thing , also how do i print the whole txt file and then the information searched i know it had so to with the
Print . function
You said the program reads in information.
In order to do a search you would just have to read in the same information except using the parameter entered in a search text box for your SQL.
Then re-populate the Recordset you are using to read in now with this filtered data.
I assume this makes sense? Are you using SQL or are you binding the form to a data control? If you are you can adjust the SQL of that specific data control to be filtered too.
...I assume this makes sense? Are you using SQL or are you binding the form to a data control?
My guess would be neither. If you look closely, I think the original post says the info is being stored in a text file.
Or have I got that backwards, Yamasassy?
hi ,
If you are loading the text you want to search into a textbox you can use this... - Private Sub Command1_Click()
-
Dim Search, Where
-
' Get search string from user.
-
Search = Text2.Text
-
' Find string in text.
-
Where = InStr(Text1.Text, Search)
-
If Where Then
-
Text1.SetFocus
-
Text1.SelStart = Where - 1
-
Text1.SelLength = Len(Search)
-
Else
-
MsgBox "String not found."
-
End If
-
End Sub
GobbleGob.
My guess would be neither. If you look closely, I think the original post says the info is being stored in a text file.
Or have I got that backwards, Yamasassy?
yeah the info is being saved in to a text file ,
yamasassy
You want to search and navigate the record from a text file ?
You want to search and navigate the record from a text file ?
i got that navigate bit working , just really confused about how to search
i have my text file set up going accross the screen insted of down
Yamasassy
Sign in to post your reply or Sign up for a free account.
Similar topics
by: David |
last post by:
Hi,
I'm trying to add a search facility to a page that looks for matches in one,
other or both memo fields of a database. The code below works fine if the
visitor types in one word, or the term...
|
by: D. Dante Lorenso |
last post by:
Trying to use the 'search' in the docs section of PostgreSQL.org
is extremely SLOW. Considering this is a website for a database
and databases are supposed to be good for indexing content, I'd...
|
by: RiceGuy |
last post by:
Hi! I'm looking for ideas on what would the best approach to design a
search system for a RSS feeds. I will have some 50 RSS feeds (all RSS
2.0 compliant) stored locally on the web server. Now I'm...
|
by: Eric |
last post by:
Hi: I have two files. I search pattern ":" from emails text file and
save email contents into a database. Another search pattern " field is blank. Please try again.",
vbExclamation + vbOKOnly...
|
by: ZafT |
last post by:
Thanks for any help in advance. I am using this exact same piece of code on
a server running PHP4, but for some reason when I run it on dreamhost using
PHP5, the search does not register and it...
|
by: eSolTec, Inc. 501(c)(3) |
last post by:
Thank you in advance for any and all assistance. Is there a way to start,
pause and resume a recurrsive search exactly where you left off, say in the
registry programmatically?
--
Michael Bragg,...
|
by: cglewis03 |
last post by:
Hello,
I am trying to build a search form with several different options to choose from. Currently it is set up to open within the same window if a single option is selected and open within a...
|
by: jonathan184 |
last post by:
Hi I tried getting this to work through dreamweaver but it did not.
So i found a n example on the internet , i followed everything exactly the search script does not work. Could somebody help me...
|
by: Ken Fine |
last post by:
I have set up Microsoft Search Server 2008 Express.
I want to know how I can query against it and return results in a form that
can be bound to ASP.NET controls like ListViews. If there's simply...
|
by: iahamed |
last post by:
Hi Everyone,
I got two parts of my advance search to work, I am running out of Logic to
connect the third. My mind is in swing! Pleaseeeeeeeee Help me.
I have 3 Fiels to search, the First two...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |