Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 5th, 2005, 10:30 AM
trotts trotts is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 1 trotts User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 10 sec
Reputation Power: 0
Display client name not number

I have a database that is using a client table and job table.
The clients are using lookup to populate dropdown menu's.

What i need to do is call up a record from the job table and display the clients name... only problem is i keep getting there number ie 2,3,1...

Does anyone know how to get the client name to appear instead.. i can do it with the dropdown by setting the value to be the same as the client table but i want to do this with normal text or text box.

Thanks in advance and sorry but i'm fairly new to asp.

Reply With Quote
  #2  
Old April 5th, 2005, 11:28 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,291 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 14 h 16 m 8 sec
Reputation Power: 1802
you'll have to use the number (which I assume is unique id) and run sql select statement on the clients table and grab the name from there:
Code:
 <%
  strSQL="Select ClientName From Clients Where ClientId="&clientID
  Set rs=objConn.Execute(strSQL)
  clientName=rs("ClientName")
 %>
 ...
 <input type="text" name="client" value="<%=clientName%>" />
 
Comments on this post
trotts disagrees: Very Helpful

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Display client name not number


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
Stay green...Green IT