Turned out that I needed parenthesis around the first join. Thanks! ----- Original Message ----- From: "Stephen Moretti" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 21, 2002 9:37 AM Subject: Re: SQL in Access Help
> Frank, > > I think that you'll find that "order" is a reserved word in SQL (eg. ORDER > BY) and therefore should not be used as a database, table or column name. > > Regards > > Stephen > ----- Original Message ----- > From: "Frank Mamone" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, June 21, 2002 2:07 PM > Subject: SQL in Access Help > > > > Doing special project with Access. I got a syntax error - missing > operator - with this SQL statement. Can you see the error? > > > > SELECT DataSheet.*, Order.order, Lorder.Order > > FROM DataSheet INNER JOIN [Order] ON DataSheet.Group = Order.Group > > INNER JOIN [LOrder] ON Datasheet.Label = LOrder.Label > > WHERE Datasheet.Account = 'Vitamin Shoppe S001' > > ORDER BY Order.order,Lorder.order; > > > > > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

