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.

A query to return the opposite value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sonja - 25 Apr 2008 23:43 GMT
Hi
I will try to explain what I am trying to do, here goes.
I ave orders, bookings,locations,vehicles and drivers tables, I need to make
a query of drivers and vehicles for a specified date, then using the SQL code
in that query, create another query to search the vehicles and drivers that
do not hav orders on the specified date,

I can get it working using a query each for the vehicles and drivers, but
when I try to do one query to show vehicles and drivers combined, an error
message comes up saying  "you have written a subquery that can return more
than one field without using the EXISTS reserved word in the main query's
FROM clause.  Revise the SELECT statement of the subquery to request only one
field"

Does anyone have any ideas of how I can overcome this.  ultimately I want to
create a form and report from the query
thank you
Ken Snell (MVP) - 27 Apr 2008 20:05 GMT
Show us some details about the tables' structure (fields, data, etc.) and
show us the SQL statement of the query that you've tried to use.

Signature

       Ken Snell
<MS ACCESS MVP>

> Hi
> I will try to explain what I am trying to do, here goes.
[quoted text clipped - 18 lines]
> create a form and report from the query
> thank you
 
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.