473,385 Members | 2,210 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,385 software developers and data experts.

"ZH"+Str([MyNumericField]) adds a space

In a query I have this expression:

Expr1: "ZH"+Str([MyNumericField])

It should give me ZH1234 but it adds a space between the 2 parts so I get ZH
1234.

What can I do to prevent this?
Thanks,
john
Aug 30 '06 #1
2 2415
Expr1: "ZH" & Trim(Str([MyNumericField]))
Chris Nebinger
john wrote:
In a query I have this expression:

Expr1: "ZH"+Str([MyNumericField])

It should give me ZH1234 but it adds a space between the 2 parts so I get ZH
1234.

What can I do to prevent this?
Thanks,
john
Aug 30 '06 #2
I already tried something like that, putting the trim after the str, without
results.
But now it works!
thanks
john

<ch************@gmail.comschreef in bericht
news:11**********************@i42g2000cwa.googlegr oups.com...
Expr1: "ZH" & Trim(Str([MyNumericField]))
Chris Nebinger
john wrote:
>In a query I have this expression:

Expr1: "ZH"+Str([MyNumericField])

It should give me ZH1234 but it adds a space between the 2 parts so I get
ZH
1234.

What can I do to prevent this?
Thanks,
john

Aug 30 '06 #3

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

Similar topics

3
by: Randell D. | last post by:
Folks, I'm using Apache/1.3.28 (SuSE 7.1, kernal 2.4) with PHP/4.3.2. I have the following code to help cleanse form data. function cleanData($sourceData, &$cleanData) { foreach($myData as...
12
by: Jacob Weber | last post by:
Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom,...
12
by: skeeterbug | last post by:
http://www.geocities.com/operationsengineer1/test2.htm the extra space between the logoHeader and the menu bar occurs when i add the <ul>. if i comment out the ul and and all the li, the 1em...
4
by: Christoph Haas | last post by:
Evening... I'm writing a simple interactive program to maintain a database. The goal was to print "> " at the beginning of the line, wait for user input and then deal with it. Minimal test...
1
by: wolftor | last post by:
I am writing some strings to MS Word. When I use the str function to convert the street number to a text string, I believe it adds a space in front for +/-. I don't want a space at the start of...
4
by: asnowfall | last post by:
If I have white space in the <atag, IE interpretes it as line break. I tried setting "whie-space: pre" and it did not seem to affect. Here is a sample. ...
0
by: BlueNeck | last post by:
I'm having some trouble with a design I'm working on. There are a few places where I have extra space and I can't isolate the problem. Here's the page:...
5
by: RetroMIDI | last post by:
I notice that the <ptag does not always allow the same amount of space. Some websites have about half a line only. When I check their code, they have used just <p>. On other occasions it seems that...
3
by: adiasu | last post by:
The text in my document contains the right bracket character ]. When the browser displays the text, it seems to add an extra space after the character. For example, if I want to display a]A, the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.