Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 27th, 2004, 08:54 PM
Novac Novac is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Novac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ID value displayed in ASP QRY results instead of text

Using MS Access 2003 . . .

I have TBL_Movies with an "Available" field with Data type "Number". The data here points to the ID field in TBL_AvailableStatus. TBL_AvailableStatus has two fields: ID and Status.

The lookup for the Available field in TBL_Movies is
Code:
SELECT DISTINCTROW [TBL_AvailableStatus].[ID], [TBL_AvailableStatus].[Available Status Type] FROM [TBL_AvailableStatus];


I have a report that will display the various fields, including the Available fields. As desired, the report displays the written values from the Status field. I also have a QRY_AllMovies that looks like this:
Code:
SELECT TBL_Movies.Title, TBL_Movies.Year, TBL_Movies.[Original Title], TBL_Movies.Available
FROM TBL_Movies
ORDER BY TBL_Movies.Title;

When I view this QRY, everything looks as I want it (displaying the text from the TBL_AvailableStatus.Status field), but whenever I attempt to create an ASP from QRY_AllMovies, the resulting page displays only the number value from TBL_AvailableStatus.ID.

Can anyone help me with how to get the text from the Status to display in an ASP instead of the ID? Technically, the ID is the value stored in the field, but the report is smart enough to display the info I want. I've tried various different 'solutions', but to no avail.

Reply With Quote
  #2  
Old January 28th, 2004, 05:19 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Anything after the SELECT keyword is returned. If you are having problems with what's being return in the ASP file, then that's where the problem is... the ASP, not the SQL, unless I've misunderstood your problem.

Reply With Quote
  #3  
Old January 28th, 2004, 08:20 AM
Novac Novac is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Novac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah, that's what I was afraid of. I posted here first, since Access created the page for me, and I haven't touched a bit of ASP yet. I was hoping there was an easy solution within Access that I had overlooked. I'll try reposting in the ASP thread when I get around to it. Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > ID value displayed in ASP QRY results instead of text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway