Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

What put the bang! in my subquery

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Evi - 24 Apr 2008 23:35 GMT
Playing around with Subqueries I've noticed that whenever I do anything to
change the query in the Design view, a bang (!) appears just in front of the
brackets that section off the subquery. Then I get an error about the ! when
I try to run the query

Is this normal? What does it mean? What can I do to avoid it?
Evi
John W. Vinson - 25 Apr 2008 03:47 GMT
>Playing around with Subqueries I've noticed that whenever I do anything to
>change the query in the Design view, a bang (!) appears just in front of the
[quoted text clipped - 3 lines]
>Is this normal? What does it mean? What can I do to avoid it?
>Evi

Not normal at all... I've never seen it happen! What version of Access? Could
you post the SQL of such a query and indicate what kind of change you're
making?
Signature


            John W. Vinson [MVP]

Evi - 25 Apr 2008 08:30 GMT
I think I know what's causing it. The bang appeared just after the word
Price in the first row and, as you can see, I didn't have a comma after it.
Since I have commas after everything else, I guess I ought to have one there
also.
I'm using Acc 2000. It appeared first when I added Item to the query's
record source (QryRptInvOrd) and then to the query.
It next appeared when I added the Order By clause.

SELECT QryRptInvOrd.InvDate, QryRptInvOrd.ItemID, QryRptInvOrd.Price(SELECT
TOP 1 Dupe.InvDate
FROM QryRptInvOrd AS Dupe
WHERE  Dupe.ItemID = QryRptInvOrd.ItemID
AND Dupe.InvDate<QryRptInvOrd.InvDate
ORDER BY Dupe.InvDate DESC, Dupe.InvDate) AS PriorValue, QryRptInvOrd.Item
FROM QryRptInvOrd
ORDER BY QryRptInvOrd.Item;

Evi

> >Playing around with Subqueries I've noticed that whenever I do anything to
> >change the query in the Design view, a bang (!) appears just in front of the
[quoted text clipped - 10 lines]
>
>              John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.