473,382 Members | 1,646 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,382 software developers and data experts.

Inner Join with a MS Access module

What is the syntax for an inner join when writing a inner join within a
module ? I can not figure out why on some modules I see people using
a parenthesis when writing an inner join ? See example below.

"From (tblorders INNER JOIN ztblPrices ON " & _
"tblOrders.PriceID = ztblPrices.PriceID) INNER " & _
"JOIN ztblProducts ON ztblPrices.ProductID = " & _
"ztblProducts.ProductID)................

Nov 13 '05 #1
3 2273
On 23 Apr 2005 18:30:28 -0700, "LemonHead" <po********@gmail.com>
wrote:

The syntax is documented in the help file.
But I would rather use the query designer to create my query, and then
switch to SQL view to inspect the SQL statement.

-Tom.

What is the syntax for an inner join when writing a inner join within a
module ? I can not figure out why on some modules I see people using
a parenthesis when writing an inner join ? See example below.

"From (tblorders INNER JOIN ztblPrices ON " & _
"tblOrders.PriceID = ztblPrices.PriceID) INNER " & _
"JOIN ztblProducts ON ztblPrices.ProductID = " & _
"ztblProducts.ProductID)................


Nov 13 '05 #2
I also build in the query designer and then switch to the SQL viewer,
but if you dump this into a module the syntax needs to be changed. I
am primarily trying to detrmine the parenthesis.

Nov 13 '05 #3

"LemonHead" <po********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I also build in the query designer and then switch to the SQL viewer,
but if you dump this into a module the syntax needs to be changed.


Why? That is not my experience. The only difference I see in SQL in-code is
that you can't include form references in the statement, but you can take those
out of the quoted area to get the value.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Barry Young | last post by:
I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error. ORA 933 SQL command not properly...
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: Nathan | last post by:
I have an application that uses an Access database to gather information on students' test scores. In the database there are three tables which are joined by one- to-many relationships: ...
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...
7
by: Christian Muenscher | last post by:
Dear group! The following statement gives me a resultset containing two columns containing a PersonID: SELECT * FROM A LEFT JOIN B ON A.PersonID=B.PersonID UNION SELECT * FROM A
12
by: Chamnap | last post by:
Hello, everyone I have one question about the standard join and inner join, which one is faster and more reliable? Can you recommend me to use? Please, explain me... Thanks Chamnap
14
by: cjakeman | last post by:
Hi, Solved a little mystery yesterday when I built a form that combined 2 tables with a 1:M relationship and relational integrity. All the correct data was visible on the form but, if I tried to...
4
by: AXESMI59 | last post by:
I created a query in the Access Query Builder that I modified to use with VBA Code so I could reuse it for any record I choose. The one that I created with the Access Query builder works beautifully...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.