Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 9th, 2007, 12:58 PM
Friend of Wrox
Points: 912, Level: 11
Points: 912, Level: 11 Points: 912, Level: 11 Points: 912, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: Dublin, , Ireland.
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
Reply With Quote
  #2 (permalink)  
Old November 9th, 2007, 01:33 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.