im have tables in access,Customer,Products and Order Table...
Customer Table: -
Cust_ICNumber (PK)
-
Cust_Name
-
Cust_Address
-
Cust_PrimaryNumber
-
Cust_SecondaryNumber
-
Cust_Company
-
Cust_CompanyType
-
Products Table - Product_ID (PK)
-
Product_Name
-
Product_Price
-
Product_Picture
-
Order Table -
Order_ID(PK)
-
Product_ID(FK)
-
Order_Quantity
-
Order_Date
-
Customer_ICNumber (FK)
-
Total_Price
-
I intend to output bill (a classic asp file) from order table which will display Order ID,Product Name,Product Price, Customer Name,Customer Address,Order Date.
I wondering if this sql is correct and can be used in classic ASP - SELECT tCustomer.Cust_Name,
-
tCustomer.Cust_Address,
-
tProducts.Product_Name,
-
tOrder.Order_Quantity,
-
tOrder.Order_Date,
-
tOrder.Order_ID,
-
tOrder_Total_Price
-
-
FROM (((Order AS tOrder LEFT JOIN
-
Customer AS tCustomer
-
ON tOrder.Customer_ICNumber=tCustomer.Cust_ICNumber) LEFT JOIN
-
Products AS tProducts
-
ON tOrder.Product_ID=tProducts.Product_ID);
because I have been trying to use this code but i keep getting error on this at the FROM clause.
@puT3
Hi
I am not too sure about classic ASP, I have not used it at all (in anger) but have two comments on you query
1. Your have, too many opening brackets in the FROM clause (hence the error?)
2. I not sure why you have used alias named for each tables (perhaps this is for ASP!)?
Does that help?
MTB
5 1424 @puT3
Hi
I am not too sure about classic ASP, I have not used it at all (in anger) but have two comments on you query
1. Your have, too many opening brackets in the FROM clause (hence the error?)
2. I not sure why you have used alias named for each tables (perhaps this is for ASP!)?
Does that help?
MTB
NeoPa 32,556
Expert Mod 16PB
PuT3, you've clearly gone to some trouble laying the tables out, which is appreciated. I expect if you'd done the same with the SQL you would have seen the problem yourself very easily (No criticism - just irony - you did a good job overall).
MTB hit the nail on the head (and he even managed it before the reformat - Kudos).
PS. @MTB - Using Aliases is not too unusual. Sometimes simply to see them displayed in a standard format. I use them myself sometimes to shorten the names so making qualifying field references easier.
oo..That's mean i should delete the brackets ok...i will try it...thanks...
@NeoPa
Point taken, even done the latter myself, but in this case, just seemed no make it more complicated (was just a comment) !!
Cheers
MTB
NeoPa 32,556
Expert Mod 16PB @puT3
Not exactly. I assume you're referring to the parentheses when you say brackets. What you need is to ensure they're balanced (opens all have matching closes) rather than to remove them completely.
PS. @MTB - I wasn't trying to criticise - just commenting from one expert to another. Sorry if it came across wrongly.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Tom marsh |
last post by:
I'm finishing an application and want to supply help files. However MS
Access's help files, ironically don't contain much help on HELP. What is
the best approach? I could easily just provide...
|
by: Douglas |
last post by:
I was trying to look up Access Help for the GetSetting, SaveSetting
commands to implement in my DB code
when i press F1, up pops the Microsoft Access Help, if i click Index
and type in Get, all...
|
by: BT Openworld |
last post by:
I have just had to upgrade to Access 2003 as Access 97 EMail (SendObject)
doesn't work when loaded on Windows XP. I'm finding my way around Access
2003 but my biggest problem is getting...
|
by: Mitchell Thomas |
last post by:
I hope someone out there can solve my mysterious problem. I have
tried everything imaginable, even paid $35 to Microsoft to help me,
but they were not able to figure out this problem: Here is the...
|
by: Vladislav Moltchanov |
last post by:
Recently I have changed from Acc97 to Acc2000 (I had to supply some data
entry tools for field data collection for users still using Acc97).
Among lot of other complications coming with Acc2000...
|
by: Corepaul |
last post by:
Missing Help Files
When I enter "recordset" as the keyword and search the Visual Basic Help index,
I get many topics of interest in the resulting list. But there isn't any
information available...
|
by: Bruce Dodds |
last post by:
I recently started using Access 2003 for the first time. I wanted to
pass on some comments about the Help system to Access MVPs who frequent
this board. I'm doing this in the hope that some of...
|
by: J |
last post by:
I use Access 97 and Windows XP (Sp2 if that matters)
I mostly program for myself, but am now writing an
application for my wife's club and need to include
a help file with the database
I am...
|
by: Joe Rigley |
last post by:
Help Please!
I've been tasked with converting a portion of the corporate web site that
currently utilizes local user accounts and NTFS via Basic Authentication to
access certain files on the...
|
by: JonathanOrlev |
last post by:
Hello everybody,
I wrote this comment in another message of mine, but decided to post it
again as a standalone message.
I think that Microsoft's Office 2003 help system is horrible, probably...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |