Connecting Tech Pros Worldwide Help | Site Map

Sub query problem Access 97

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:53 PM
Mark Reed
Guest
 
Posts: n/a
Default Sub query problem Access 97

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



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.