Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

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:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 16th, 2004, 10:07 AM
Kristin Kristin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 56 Kristin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
data report fields display

Anybody know how to display two fields on a data report and get rid of trailing spaces?

for example, I need to display "lastname, firstname"

How do I get rid of the trailing spaces after the last name so it doesn't look like this:

NAME: Smith ,John

any ideas? Is it something I have to fix on the report itself or the query behind it?

thanks
kristin

Reply With Quote
  #2  
Old July 16th, 2004, 10:14 AM
KevinRedfern KevinRedfern is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 KevinRedfern User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
use something like in a text box in the report

[lastname] & ", " & [firstname]

You can do it either in the query behind the report so it would read somthing like

contact name:[table name]![lastname] & ", " & [table name]![firstname]


hope this helps

Reply With Quote
  #3  
Old July 16th, 2004, 02:03 PM
Kristin Kristin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 56 Kristin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Since my query is generating the report, I can't do anything inside the report, as they are all bound fields. When I try to fix the query, it gives me an error. This is SQL by the way. Here is my query, any idea how to do it from here?

SELECT records.reportcontact, company.company, records.lastn,
records.firstn, records.donorid, records.collecteddate,
records.reason, records.lab, records.speciminid,
records.reportdate, records.verifieddate, records.result,
records.mrocomid
FROM records INNER JOIN
company ON records.mrocomid = company.mrocomid
WHERE (records.recordnum = ?)

Would be nice if these reports could do more.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > data report fields display


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 1 hosted by Hostway