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 / July 2006

Tip: Looking for answers? Try searching our database.

Query returns all records not just selected

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marg - 13 Jul 2006 14:21 GMT
In my query I'm selecting 3 fields from a table but when I run the query it
returns all fileds from table.  When I view the SQL it shows
SELECT Tbl_DRA_2005_2006.School, Tbl_DRA_2005_2006.Counter,
Tbl_Tenex_2005_2006.Race, *
FROM Tbl_DRA_2005_2006 LEFT JOIN Tbl_Tenex_2005_2006 ON
Tbl_DRA_2005_2006.StudId = Tbl_Tenex_2005_2006.StudID
ORDER BY Tbl_DRA_2005_2006.School;

Why does it put the ,* at the end of your selection?
Thank you
Rick Brandt - 13 Jul 2006 14:34 GMT
> In my query I'm selecting 3 fields from a table but when I run the
> query it returns all fileds from table.  When I view the SQL it shows
[quoted text clipped - 6 lines]
> Why does it put the ,* at the end of your selection?
> Thank you

In design view open the property sheet.  There is an option to "output all
fields".  Set that to No.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
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



©2008 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.