Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INNER JOINs on MS Access database in ASP 1

Status
Not open for further replies.

mattygriff

Programmer
May 14, 2001
350
GB
I am using the following SQL query to try to retrieve data from one database table in date order based on a field in another table :

SELECT results.*, fixtures.fixdate FROM fixtures INNER JOIN results ON fixtures.fixID = results.fixID ORDER BY fixtures.fixdate

but I keep getting a syntax error message when I try to render the page. I generated the query from within MS Access so all the table and field names are correct.

Can anyone help ?
 
Please post the exact error message, the line and surrounding code where the error is and your connection info.
 
Try...

SELECT results.*, fixtures.fixdate FROM results INNER JOIN results ON fixtures.fixID = results.fixID ORDER BY fixtures.fixdate ASC

G
-GTM Solutions, Home of USITE-
-=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top