Connecting Tech Pros Worldwide Help | Site Map

Sub query problem Access 97

  #1  
Old November 12th, 2005, 07:53 PM
Mark Reed
Guest
 
Posts: n/a
Hi all,
The background is:
I have a database at work which runs on 97.
I have copied this database and bought it home to try new things with it. My
home Access version is 2000. At home, I have included a subquery on one of
the query's which works a treat. I mailed the query to work and added it to
my DB there. When I run it, I get the following error:

Syntax error in FROM clause. (Error 3131)
You entered an SQL statement that has an invalid FROM clause.
Possible causes:

· A reserved word or argument name is misspelled or missing.
· Punctuation is incorrect.


This is exactly the same database and query apart from the subquery I have
just added and the version of access I am running it on. The new query is as
follows:

SELECT testb.dandt, testb.forname, testb.surname, (Select Max([dandt]) from
testa
Where testa.dandt < testb.[dandt]) AS previous
FROM testa AS testb;

Could anyone tell me the cause of this and perhaps a remedy?

The help files are not much help.

Thanks in advance,

Mark


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 97 to Access 2003 conversion problem ! prakashwadhwani@gmail.com answers 3 September 9th, 2008 12:55 PM
Subform not consistently updating from RecordSource in Access 97 stuart.medlin@ncmail.net answers 3 November 4th, 2006 02:35 AM
little filter problem in access 97 sparks answers 2 November 13th, 2005 08:58 AM
access 97: select case & combo box problem JMCN answers 2 November 12th, 2005 04:41 PM