Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 July 22nd, 2003, 06:41 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filtering records from Access DB

I am trying to retrieve records by a certain type from my Access Database. I can retrieve all the records in the database but I only want a certain type. I have tried using the code from my Wrox book, Beginning Active Server Pages 3.0 and modifying it but it either does not work or it retrieves all records.
Can anyone help me with this problem?
I can't post my code as it is pretty tatty as I am all over the place with it at the minute.
Nearly forgot, I am new to ASP and only just getting the hang of certain aspects of it.
Any help would be appreciated.

Andy
 
Old July 22nd, 2003, 08:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Its hard to say for sure since you give us nothing to go on. No code and no table structures. Have you tried using a WHERE clause in your SQL string (are you using SQL?).
Code:
SELECT Field1, Field2, ... FROM TableName
WHERE FieldN = 'TheTypeYouWant'





Similar Threads
Thread Thread Starter Forum Replies Last Post
filtering records Vince_421 Access VBA 3 April 2nd, 2007 04:19 PM
Access DB Records Randomly becomes Chinese scripter Access VBA 3 May 3rd, 2006 05:19 AM
Filtering records using iif statement Anlon Access 2 April 21st, 2005 01:24 PM
unable to insert records into access DB bn_sree Access ASP 0 October 8th, 2003 08:38 AM





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