?
Solved

Searching through a database from visual basic

Posted on 2003-02-19
3
Medium Priority
?
208 Views
Last Modified: 2010-04-17
I am VERY new to visual basic and i am trying to write a program that searches my database. I have no clue at all how to do this, i have a text box and a search button but no coding. Can someone please help me get on my way of having this program work.
0
Comment
Question by:mrhell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
twalgrave earned 150 total points
ID: 7984921
I recommend using the add-in called VB Data Form Wizard.  You can get to it from The add-ins...Add-in Manager.  This will build a DB form for you.  Now you can modify the code and change the SQL statement used to open the ADO recordset to do the search.

You will end up doing a SQL statement like:

sSQL = "Select * from MyTable where MYField = '" & text1.text & "'"
then you will refresh the data control or whatever you choose to create a recordset.
0
 
LVL 3

Expert Comment

by:FaithRaven
ID: 9307490
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept twalgrave's comment
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

FaithRaven
EE Cleanup Volunteer
0
 
LVL 3

Expert Comment

by:FaithRaven
ID: 9308016
Thanks mrhell for you colaboration :)

Yours,
   FaithRaven
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question