|
-
Mar 7th, 2000, 09:34 PM
#1
Thread Starter
Hyperactive Member
Dear VB programmers,
Can someone please tell me the syntax to join two tables:
In database "C:\Q.MDB"
Content of Q.MDB:
Tables Fields
Cities Street
Town
Names Street
NickName
Source:
Dim DBS As Database
Dim RS As Recordset
Set DBS = OpenDatabase("c:\q.mdb")
Set RS = DBS.OpenRecordset("???????????????")
What do I have to fill in on the quetion marks if I want to join Cities.street with Names.street?
Nice greetings,
Michelle.
-
Mar 7th, 2000, 09:39 PM
#2
Lively Member
Code:
Set RS = DBS.OpenRecordset("Select Cities.Street, Cities.Town, Names.NickName FROM Cities, Names WHERE Cities.Street = Names.Street")
I am not sure if this is what your getting at or not.
-
Mar 7th, 2000, 09:51 PM
#3
Thread Starter
Hyperactive Member
Hello bsmith,
Yhanks for the quick and usefull answere.
Nice regards,
Michelle.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|