Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Yet another vb question-Relationships

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

crazymotorbik...
Nearly there...



Joined: 05 Mar 2006
Karma :

PostPosted: 00:19 - 28 Mar 2010    Post subject: Yet another vb question-Relationships Reply with quote

Hey,

I'm currently trying to get back into vb6 but I'm having a few problems remembering how to do stuff!

Today's question is:

I am trying to remember how vb handles relationships.

For example if I search an entity that has a relationship with another entity (Set-up in MS Access) how do i retrieve the data from this other entity through the relationship.

I have searched on Google but the only results i can find are for creating the relationships.

Cheers,
Shaun.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Alexio
World Chat Champion



Joined: 27 Aug 2009
Karma :

PostPosted: 01:01 - 28 Mar 2010    Post subject: Reply with quote

I think this depends on how you are connecting to the database. As far as I can remember you could either use DAO or ADO (I think? It was ages ago).

I seem to remember my code selecting a database table and only being able to navigate forwards and backwards through the returned data set. I don't remember any relational provisions at all.

Is SQL involved? Are you using OBDC? If so it's likely to happen in exactly the same way every other language on the planet handles it. If not, I don't know how to help.
____________________
will never give up his CG. I look at my fuel gauge more as a progress bar than a fuel gauge.
G: With my GSXR I do often effectively use it as a scooter with a clutch in town.
ms51ves3: why does it need 500 miles? Are you teaching it how to be a piston?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 03:06 - 28 Mar 2010    Post subject: Reply with quote

Don't think i really understand the question. Perhaps your talking about SQL rather than VB? in which case said relationships are most likely a JOIN statement.

People_table
User_id Name Age
1 Bob 25
2 James 55

Job_table
User_id Job
1 milkman
2 pilot


SELECT Job FROM job_table JOIN People_table using (User_id) WHERE Name="Bob";

so you state which tables you wish to use, and what field you want to connect the 2 using.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 16 years, 161 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.06 Sec - Server Load: 0.4 - MySQL Queries: 13 - Page Size: 36.05 Kb