Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2007, 12:58 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Problem

Hi All
I am new to SQL queries I have the following problem. I need to have the Software Name in ascending order in the query. How and what do I need to do with the query.


SELECT Softwareinfo.SoftwareID, Softwareinfo.SoftwareName, Softwareinfo.Softwareconflicts, Softwareinfo.TivoliDistributionPackage, Softwareinfo.softwarelocation, Softwareinfo.SoftwareDependencies, Softwareinfo.contactdetails, Softwareinfo.versiondetails, Softwareinfo.Contact, Softwareinfo.generalcomments, Softwareinfo.licence
FROM Softwareinfo
WHERE ((Softwareinfo.SoftwareName) Like [forms]![Mem]![SoftwareName] & "*")and((Softwareinfo.contact) Like [forms]![Mem]![contact] & "*")and((Softwareinfo.softwarelocation) Like [forms]![Mem]![softwarelocation] & "*")and((Softwareinfo.SoftwareDependencies) Like [forms]![Mem]![SoftwareDependencies] & "*")and((Softwareinfo.TivoliDistributionPackag e) Like [forms]![Mem]![TivoliDistributionPackage] & "*")and((Softwareinfo.VersionDetails) Like [forms]![Mem]![VersionDetails] & "*")and((Softwareinfo.Softwareconflicts) Like [forms]![Mem]![Softwareconflicts] & "*");


Thanks

Brendan Bartley
__________________
Brendan Bartley
 
Old November 9th, 2007, 01:33 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Doesn't this work?

SELECT Softwareinfo.SoftwareID, Softwareinfo.SoftwareName, Softwareinfo.Softwareconflicts, Softwareinfo.TivoliDistributionPackage, Softwareinfo.softwarelocation, Softwareinfo.SoftwareDependencies, Softwareinfo.contactdetails, Softwareinfo.versiondetails, Softwareinfo.Contact, Softwareinfo.generalcomments, Softwareinfo.licence
FROM Softwareinfo
WHERE ((Softwareinfo.SoftwareName) Like [forms]![Mem]![SoftwareName] & "*")and((Softwareinfo.contact) Like [forms]![Mem]![contact] & "*")and((Softwareinfo.softwarelocation) Like [forms]![Mem]![softwarelocation] & "*")and((Softwareinfo.SoftwareDependencies) Like [forms]![Mem]![SoftwareDependencies] & "*")and((Softwareinfo.TivoliDistributionPackag e) Like [forms]![Mem]![TivoliDistributionPackage] & "*")and((Softwareinfo.VersionDetails) Like [forms]![Mem]![VersionDetails] & "*")and((Softwareinfo.Softwareconflicts) Like [forms]![Mem]![Softwareconflicts] & "*")
ORDER BY Softwareinfo.SoftwareNamr ASC;




mmcdonal

Look it up at: http://wrox.books24x7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL problem MArk_dB BOOK: Beginning ASP 3.0 1 December 16th, 2007 07:33 AM
sql problem shrisangeeta Classic ASP Databases 2 May 24th, 2006 09:58 AM
SQL problem Lexus SQL Language 2 January 20th, 2005 09:25 AM
SQL problem Clive Astley Access VBA 4 October 19th, 2004 10:42 AM
SQL Problem tjw Access 1 November 12th, 2003 09:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.