[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to search a dataset

Posted on 2006-11-28
3
Medium Priority
?
203 Views
Last Modified: 2010-04-23
In my application I have a dataset which I fill on start of the application.

        Me.taPupilRecords.Fill(Me.dsPupilRecords.pupilRecords)
The dataset has two colums    "First Name"   "Last Name"

I would like to search the dataset for a name and display the name in a textbox.   Could you please tell me the easiest way to do that.
I seem to be stuck on this.

thanks

Max
0
Comment
Question by:maxgall
[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 10

Accepted Solution

by:
Kinger247 earned 1000 total points
ID: 18026696
Can you use a select like :

Dim DataRows() As DataRow = dsPupilRecords.Tables(0).Select("[First Name]='Ben' AND [Last Name]='Sherman'")
0
 

Author Comment

by:maxgall
ID: 18026765
yes, working fine . thanks vm
0
 
LVL 10

Expert Comment

by:Kinger247
ID: 18026802
no problem.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

649 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