473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

removing last letter in data for a report

HI
I have a ata feild with a stand code EG A23H, there are three letters H, W & C
but i do not wish them to be printed in the reports. How can i remove this
letter during a query thatr creates a report so that it is not on the final
printout
thanks in advance
Karl
Nov 12 '05 #1
2 1548
On 18 Feb 2004 17:41:22 GMT, Karlwasley wrote:
HI
I have a ata feild with a stand code EG A23H, there are three letters H, W & C
but i do not wish them to be printed in the reports. How can i remove this
letter during a query thatr creates a report so that it is not on the final
printout
thanks in advance
Karl

In the query?
NewColumn:Left([FieldName],Len([FieldName])-1)
Include this NewColumn field in the report.

You can also do it in the report itself.
Just use the above expression in an unbound control's control source:
=Left([FieldName],Len([FieldName])-1)
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #2
In a query ...

SELECT Left$([FieldName], Len([FieldName])-1) AS SomeAlias FROM SomeTable

Or in the control source of the text box on the report ...

=Left$([FieldName], Len([FieldName])-1)

See the Left() and Len() functions in the help file for details.

--
Brendan Reynolds

"Karlwasley" <ka********@aol.com> wrote in message
news:20***************************@mb-m27.aol.com...
HI
I have a ata feild with a stand code EG A23H, there are three letters H, W & C but i do not wish them to be printed in the reports. How can i remove this
letter during a query thatr creates a report so that it is not on the final printout
thanks in advance
Karl

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Young | last post by:
I am creating a report / letter that automatically fills in fields from a form when a command button is pressed on the form..... The idea is to create a report /letter containing member address and...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
13
by: jerger | last post by:
my program takes users input (words/sentance) and translates it from english to hmong. I have to main variables, but cannot post my entire code. char In; CString in; basically the user cin...
0
by: raj3109 | last post by:
Hi experts, I’d like to have some helps from you guys. I need to create an app with C# and Crystal Report.Net using VS 2008 for a Landscape & Nursery company. The company will send out coupon...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.