Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to fetch Data from diffrent-diffrent table Using MS Access & C#
Posted
Comments
[no name] 22-Mar-14 3:54am    
Praveen, this is ok with query..

Please see the query given below. it select columns from 2 table RegistrationInfo and StudentClass

Select RegistrationInfo.SName, RegistrationInfo.FName, RegistrationInfo.ClassID, RegistrationInfo.RegStatus, RegistrationInfo.Photo, StudentClass.ClassName

from RegistrationInfo

join StudentClass on RegistrationInfo.ClassID=StudentClass.ClassID "
where RegistrationInfo.ID='1'

hope this helps.

-praveen.
 
Share this answer
 
v2
set the relation as a foreign key in MS Access Table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900