473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

inner join problem

imrosie
222 100+
Hello,

Here's my situation.The main form built on query of 2 tables,customers and orders. You can locate a customer through the unbound combo box built on row query (custid, fname, lname). The main form filters by customerid and it's supporting query works on an inner join:

Expand|Select|Wrap|Line Numbers
  1. FROM Customers INNER JOIN Orders ON Customers.CustomerID=Orders.CustomerID;
currently there are no orders....(my db is new)....I've only added dummy customers to test out.

when I attempt to select a name from the control....the cursor runs past the name to the next control. so I tried changing the inner join to a left join (for customer table)....same thing happens.

My row query works great in my old database, so it can't be a problem there.....I really need to have these tables joined because of the 'order details' (in subform) that ties them together...

How can I over come this short of making up a ton of dummy orders? thanks

Rosie
Aug 12 '07 #1
2 1517
ADezii
8,834 Expert 8TB
Hello,

Here's my situation.The main form built on query of 2 tables,customers and orders. You can locate a customer through the unbound combo box built on row query (custid, fname, lname). The main form filters by customerid and it's supporting query works on an inner join:

Expand|Select|Wrap|Line Numbers
  1. FROM Customers INNER JOIN Orders ON Customers.CustomerID=Orders.CustomerID;
currently there are no orders....(my db is new)....I've only added dummy customers to test out.

when I attempt to select a name from the control....the cursor runs past the name to the next control. so I tried changing the inner join to a left join (for customer table)....same thing happens.

My row query works great in my old database, so it can't be a problem there.....I really need to have these tables joined because of the 'order details' (in subform) that ties them together...

How can I over come this short of making up a ton of dummy orders? thanks

Rosie
  1. Open the Northwind Sample Database via: Help ==> Sample Databases ==> Northwind Sample Database.
  2. Create a New Query with the Customers and Orders Tables which is exactly the situation you currently describe.
  3. Do all you experimenting on this Sample Query.
Aug 12 '07 #2
imrosie
222 100+
  1. Open the Northwind Sample Database via: Help ==> Sample Databases ==> Northwind Sample Database.
  2. Create a New Query with the Customers and Orders Tables which is exactly the situation you currently describe.
  3. Do all you experimenting on this Sample Query.
ADezii, that's wise.....really that was a wise suggestion. I don't know why I didn't think of it. Anyway, I'm so used to using the various revisions of the Order systems to experiment with, but you're right.

I'll give that a try now.
take care
Rosie
Aug 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Prem | last post by:
Hi, I am having many problems with inner join. my first problem is : 1) I want to know the precedance while evaluating query with multiple joins. eg. select Employees.FirstName,...
8
by: kieran | last post by:
Hi, I have the following sql statement. I originally had the statement with two INNER JOINS but in some situations was getting an error so changed the last INNER JOIN to a LEFT OUTER JOIN (as...
5
by: jason.evans | last post by:
Hi there. I am having an intrigueing problem. I have a query which left joins another query to itself twice. The original query is derived from a linked table in SQLServer 2000. When I run...
4
by: algroth | last post by:
Hi! I try to do a nested inner join by sql, but I always get an "Syntax-error in FROM-clause". The statement I try around with is: SELECT * FROM st1 INNER JOIN st2 INNER JOIN st3
6
by: dmonroe | last post by:
hi group -- Im having a nested inner join problem with an Access SQl statement/Query design. Im running the query from ASP and not usng the access interface at all. Here's the tables: ...
52
by: MP | last post by:
Hi trying to begin to learn database using vb6, ado/adox, mdb format, sql (not using access...just mdb format via ado) i need to group the values of multiple fields - get their possible...
18
by: Dave | last post by:
Guys I am really stuck on this one. Any help or suggestions would be appreciated. We have a large table which seemed to just hit some kind of threshold. They query is somewhat responsive when...
3
by: Anila | last post by:
Hi Friends, My problem with Inner join is ... first i joined two tables and i got the result. after that iam trying to join one more table its giving syn tax error in JOIN condition. ...
0
by: stanlew | last post by:
Happy New Year everyone! I'm new to both T-SQL and this forum. I'm currently doing an internship and my first task was to create a small program which will send an email detailing the sales of the...
9
by: shapper | last post by:
Hello, I am used to SQL but I am starting to use LINQ. How can I create Left, Right and Inner joins in LINQ? How to distinguish the different joins? Here is a great SQL example:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.