Re: Need help on query

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As I noted earlier you need to use [] around all field and table names that
contain spaces

SELECT Min([Sr Number]) AS [MinOfSr Number]
, [Client Name]
, Min ([Project StartDate]) AS [MinOfProject Start Date]
FROM [HP Tracker]
GROUP BY [Client Name]

The above could be in error on the FROM line if your table is named HP and
not HP Tracker.

"FROM HP Tracker " would be interpreted as "FROM HP as Tracker". That
assigns an alias of Tracker to an instance of the HP table.

Is this the entire query? You say the error message is check subquery
syntax. If this is a subquery, there are other considerations that could be
making this fail. Such as a subquery in a select clause can only return one
column. A subquery in the FROM clause cannot contain square brackets (at
least if you are using the native-to-Access JET engine).


"dinadvani via AccessMonster.com" <u22798@uwe> wrote in message
news:6a59368be60b1@xxxxxx
Hi John,

Thanks for your reply.

But still the same error message"Check the subquery syntax and enclose
subquery in parenthisis"

I am trying this querry
SELECT Min([Sr Number]) AS MinOfSr Number,[Client Name], Min (Project
Start
Date) AS MinOfProject Start Date FROM HP Tracker GROUP BY [Client Name]

Please Help...

Thanks,
DA

John Spencer wrote:
You must surround field and table names that contain spaces with square
braces [ ]. This rule also applies to field names that contain other
non-alphanumeric characters (such as - / ; + () *).

Try the following query

SELECT Min([Sr Number]) AS MinOfSr Number
, [Client Name]
, Min (StartDate) AS MinOfStartDate
FROM HP
GROUP BY [Client Name]

Table name is HP
Hi,

[quoted text clipped - 27 lines]
FROM tblProjects
GROUP BY tblProjects.Account;

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200612/1



.



Relevant Pages

  • Re: NBC-torrent problems-need computer genius, please
    ... Stop all instances of BitTornado. ... Just leave your torrent running in your client. ... The client will keep trying to connect to the tracker. ...
    (rec.music.artists.springsteen)
  • [OT] [announce] Lisp Pron
    ... client so that anyone with a torrent client can download the movies. ... The tracker and seed clients are running in the back ground but are ... This post uses 100% post consumer electrons and 100% virgin photons. ...
    (comp.lang.lisp)
  • Re: Transmission
    ... tracker queries normally take place at half-hour intervals. ... how often the client scrapes is up to the coder (and is ... encryption and you are running with encryption turned off. ... When one person suffers from a delusion it is insanity. ...
    (Ubuntu)
  • Re: Problem with a page.... no content showing!
    ... Hmmmm. ... I'll ask the client. ... Steve Easton wrote: ... I have removed the tracker ... ...
    (microsoft.public.frontpage.client)
  • RE: using Parent or Me
    ... The subtables has over 200,000 records, then I'm asking Access/SQL to pull ... asked them to pull the records for that client id. ... What if one subform has the recordsource based on a subquery? ...
    (microsoft.public.access.queries)