.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 22nd, 2005, 11:14 AM
Yamahaha Yamahaha is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 Yamahaha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 38 sec
Reputation Power: 0
Despair! Linked tables and Datagrid

Hi;

I have the following situation:

An Access DB with 3 tables:
-Products(ID, ProductsName);
-Brands(ID, BrandName);
-Relation(ProductID, Flavour, BrandID, Colour, InternalRef, Price)

I want to display the Relation table, in a datagrid, according to some search criteria given by the user, having the fields Product and Brand replaced by their corresponding description for values in the other two tables.

Example:
ProductID = 3 in the relation table corresponds to 3,Syrup in the Products table. Syrup should appear in the Product column of the datagrid and not 3, as it currently does.

I have managed to create the connection, dataset, and relations in the application and the search criteria works fine... The only problem is that the datagrid always shows the numerid value of the ProductID field in the relations table and not the description available in the Products table.
The same is true for Brands.

How can I accomplish this?
I have this assignment in school and this is the only thing preventing me from completing it.

Thanks for any help.

Reply With Quote
  #2  
Old April 25th, 2005, 10:16 AM
Yamahaha Yamahaha is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 Yamahaha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 38 sec
Reputation Power: 0
Solved it.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Despair! Linked tables and Datagrid


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT