Yes the field is the primarey key in the second table and a foreign key in the original table. The database is GE Centricity.
Main Topics
Browse All TopicsI am creating a form in visual studio 2005 in vb. The majority of the data I want to show is in a sql table and I have that worked out by dragging the items onto my form after creating the connection and the dataset, however I have a related item in another table within the same database that I can't seem to get to show. When I try to use the query builder to join the 2 tables on the add query to that textbox; I get the following error: "the schema returned by the new query differs from the base query" I am fairly new to this and appreciate any help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I guess it was the database, because I created my own database and used the same drag and drop method with two tables setup with a similar relationship and it worked fine. I do have another related question. I want to have a listbox with names populated and when you click a name it will fill the cells of the items I referenced above.
this would be rather easy. All you would have to do is place a select statement havingthe where clause equal the listbox selected name.
are you using a select statements or are you databinding. That would make a difference. if you are databinding then you can use the .filter feature or even the select feature of a datatable.
Business Accounts
Answer for Membership
by: bman9111Posted on 2007-07-11 at 17:30:53ID: 19467872
are the fields you are trying to link have the same data type, same char length?
are the fields you link both primary keys.
I am thinking its your database and not vb