VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 300,437 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,474 people online right now. Registration is fast and FREE... Join Now!




VB Datasets

 

VB Datasets, How to interrogate a dataset

dinomight

2 Jul, 2009 - 08:35 AM
Post #1

New D.I.C Head
*

Joined: 2 Jul, 2009
Posts: 1

Hi, I want to create a lookup program for library books using VB6 or VB.net.

I have created a Form1.VB with two listboxes :- Listbox1
Listbox2.

I’m using an Access Database with a Library Category Table
Field1: Category

Library Title Table
Field1: Category
Field2: Title
Field3: Author
Field4: Publisher

Using the Data Adapter ConfigurationWizard I’ve created
OleDBDataAdapter1
OleDBConnection1
And from the Library Category table I’ve created Dataset1 attached to Listbox1

OleDBDataAdapter2
And from the Library Title table I’ve created Dataset2 attached to Listbox2.

Both Datasets fill using the Preview Data function.

I then load Variable CategoryString with Listbox1.text,
and I would like to know how to search Dataset2 and retrieve all titles linked to that category and display Title, Author, Publisher in listbox2.




User is offlineProfile CardPM
+Quote Post


PsychoCoder

RE: VB Datasets

2 Jul, 2009 - 10:22 AM
Post #2

Dyslexics Untie!
Group Icon

Joined: 26 Jul, 2007
Posts: 14,714



Thanked: 501 times
Dream Kudos: 11450
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
Welcome to Dream.In.Code dinomight, glad you decided to join us. For future reference please post your programming questions in the proper forum (This forum is for introductions only). I am moving this to the VB.NET forum for you smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 01:05AM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month