Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / November 2004



Tip: Looking for answers? Try searching our database.

Noob question. Relationship lookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Titus A Ducksass - AKA broken-record - 28 Nov 2004 20:28 GMT
I have 2 Access tables, each with a field called ref_no, how do I get
to show only records related to the record selected in table 1?

Table 1 ref_no = autoinc, long int
Table 2 is of type number, long int

ie T1 ref_no=100
  T2 Ref_no=100 rec 1 rec 2 .... rec 99 etc
  T1 ref_no=101
  T2 Ref_no=101 rec 1 rec 2 .... rec 99 etc

?????
Don't know where to start, keep getting a data type mismatch.

<A message to top posters.  Type your reply here>

Signature

Never be afraid to try something new.  Remember that a lone amateur
built the Ark.  A large group of professionals built the Titanic.

Harry Strybos - 29 Nov 2004 20:39 GMT
>I have 2 Access tables, each with a field called ref_no, how do I get
> to show only records related to the record selected in table 1?
[quoted text clipped - 9 lines]
> ?????
> Don't know where to start, keep getting a data type mismatch.

I think you are looking for a query. Try:

SELECT T1.Whatever FROM Table1 T1
INNER JOIN Table2 T2 ON T1.ref_no = T2.ref_no
WHERE  [condition]
ORDER BY [Field1], [Field2] etc
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.