473,545 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help: Input Mask (with spce)

hi,

is there an input mask i could use on a report to do the following:

(1) if i enter "THISISATES T" on my form, i want
the text box on my report to display: "T H I S I S A T E S T".

(2) if i enter "THIS IS A TEST" on my form, i want
the text box on my report to display: "T H I S I S A T E S
T".

i tried putting in the input mask, "A A A A A A A A A A A A A", but
it only works when there no spaces in between letters or words [i.e.
refer to
example (1)]. when i do example (2), i don't the result i want. it
ignores the
spaces i put in the form and displays it as it is "THIS IS A TEST".

any ideas would be appreciated. feel free to send me email directly.
thanks in advance.

Paul
Nov 13 '05 #1
9 2933
Try using an ampersand instead:

&/ &/ &/ &/ &/ &/ &/ &/

Paul

"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
hi,

is there an input mask i could use on a report to do the following:

(1) if i enter "THISISATES T" on my form, i want
the text box on my report to display: "T H I S I S A T E S T".

(2) if i enter "THIS IS A TEST" on my form, i want
the text box on my report to display: "T H I S I S A T E S
T".

i tried putting in the input mask, "A A A A A A A A A A A A A", but
it only works when there no spaces in between letters or words [i.e.
refer to
example (1)]. when i do example (2), i don't the result i want. it
ignores the
spaces i put in the form and displays it as it is "THIS IS A TEST".

any ideas would be appreciated. feel free to send me email directly.
thanks in advance.

Paul

Nov 13 '05 #2
Do you really mean a forward slash (/) as opposed to back slash(\)?
I tried as you suggested, the slash came out. I tried it with a back-slash
and it's works the same way as C\ C\ C\ C\......Basical ly, it works okay
without space.

Also, I want to line up the field or entries on a pre-existing form.
When i put a double space in between (i.e. C\ C\ C\ \C or
&\ &\ &\)it just ignores it.

"Paul" <pz****@rogers. com> wrote in message news:<L9******* *************@r ogers.com>...
Try using an ampersand instead:

&/ &/ &/ &/ &/ &/ &/ &/

Paul

"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
hi,

is there an input mask i could use on a report to do the following:

(1) if i enter "THISISATES T" on my form, i want
the text box on my report to display: "T H I S I S A T E S T".

(2) if i enter "THIS IS A TEST" on my form, i want
the text box on my report to display: "T H I S I S A T E S
T".

i tried putting in the input mask, "A A A A A A A A A A A A A", but
it only works when there no spaces in between letters or words [i.e.
refer to
example (1)]. when i do example (2), i don't the result i want. it
ignores the
spaces i put in the form and displays it as it is "THIS IS A TEST".

any ideas would be appreciated. feel free to send me email directly.
thanks in advance.

Paul

Nov 13 '05 #3
Sorry about the slashes.

OK \ means only show the immediate character after the \. SO if you wanted
2 spaces your could do either:

"(PressSpaceBar Twice)"

or

\(PressSpacebar }\(PressSpaceba r)

Both of these would perform the same results
C\ C\ \ C\ \ C

or

C" "C" "C" "C
"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
Do you really mean a forward slash (/) as opposed to back slash(\)?
I tried as you suggested, the slash came out. I tried it with a back-slash
and it's works the same way as C\ C\ C\ C\......Basical ly, it works okay
without space.

Also, I want to line up the field or entries on a pre-existing form.
When i put a double space in between (i.e. C\ C\ C\ \C or
&\ &\ &\)it just ignores it.

"Paul" <pz****@rogers. com> wrote in message
news:<L9******* *************@r ogers.com>...
Try using an ampersand instead:

&/ &/ &/ &/ &/ &/ &/ &/

Paul

"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
> hi,
>
> is there an input mask i could use on a report to do the following:
>
> (1) if i enter "THISISATES T" on my form, i want
> the text box on my report to display: "T H I S I S A T E S T".
>
> (2) if i enter "THIS IS A TEST" on my form, i want
> the text box on my report to display: "T H I S I S A T E S
> T".
>
> i tried putting in the input mask, "A A A A A A A A A A A A A", but
> it only works when there no spaces in between letters or words [i.e.
> refer to
> example (1)]. when i do example (2), i don't the result i want. it
> ignores the
> spaces i put in the form and displays it as it is "THIS IS A TEST".
>
> any ideas would be appreciated. feel free to send me email directly.
> thanks in advance.
>
> Paul

Nov 13 '05 #4
Thanks for the tip but, I have tried this before but, it didn't work.
I was able to use this by spacing out the record that was already in
the database properly. However when I entered i new recordd it still
didn't spaced it properly. It's only spacing it out properly when i
don't put any spaces in between words (i.e. "THISISANEXAMPL E").

"Paul" <pz****@rogers. com> wrote in message news:<pO******* *************@r ogers.com>...
Sorry about the slashes.

OK \ means only show the immediate character after the \. SO if you wanted
2 spaces your could do either:

"(PressSpaceBar Twice)"

or

\(PressSpacebar }\(PressSpaceba r)

Both of these would perform the same results
C\ C\ \ C\ \ C

or

C" "C" "C" "C
"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
Do you really mean a forward slash (/) as opposed to back slash(\)?
I tried as you suggested, the slash came out. I tried it with a back-slash
and it's works the same way as C\ C\ C\ C\......Basical ly, it works okay
without space.

Also, I want to line up the field or entries on a pre-existing form.
When i put a double space in between (i.e. C\ C\ C\ \C or
&\ &\ &\)it just ignores it.

"Paul" <pz****@rogers. com> wrote in message
news:<L9******* *************@r ogers.com>...
Try using an ampersand instead:

&/ &/ &/ &/ &/ &/ &/ &/

Paul

"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
> hi,
>
> is there an input mask i could use on a report to do the following:
>
> (1) if i enter "THISISATES T" on my form, i want
> the text box on my report to display: "T H I S I S A T E S T".
>
> (2) if i enter "THIS IS A TEST" on my form, i want
> the text box on my report to display: "T H I S I S A T E S
> T".
>
> i tried putting in the input mask, "A A A A A A A A A A A A A", but
> it only works when there no spaces in between letters or words [i.e.
> refer to
> example (1)]. when i do example (2), i don't the result i want. it
> ignores the
> spaces i put in the form and displays it as it is "THIS IS A TEST".
>
> any ideas would be appreciated. feel free to send me email directly.
> thanks in advance.
>
> Paul

Nov 13 '05 #5
Ok Paul
,
Make sure you are on the Input Mask line and not the Format line.
Copy and paste the exact values from the Input Mask line into this group
replying to this post and I will take a look at it.

Paul

"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
Thanks for the tip but, I have tried this before but, it didn't work.
I was able to use this by spacing out the record that was already in
the database properly. However when I entered i new recordd it still
didn't spaced it properly. It's only spacing it out properly when i
don't put any spaces in between words (i.e. "THISISANEXAMPL E").

"Paul" <pz****@rogers. com> wrote in message
news:<pO******* *************@r ogers.com>...
Sorry about the slashes.

OK \ means only show the immediate character after the \. SO if you
wanted
2 spaces your could do either:

"(PressSpaceBar Twice)"

or

\(PressSpacebar }\(PressSpaceba r)

Both of these would perform the same results
C\ C\ \ C\ \ C

or

C" "C" "C" "C
"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
> Do you really mean a forward slash (/) as opposed to back slash(\)?
> I tried as you suggested, the slash came out. I tried it with a
> back-slash
> and it's works the same way as C\ C\ C\ C\......Basical ly, it works
> okay
> without space.
>
> Also, I want to line up the field or entries on a pre-existing form.
> When i put a double space in between (i.e. C\ C\ C\ \C or
> &\ &\ &\)it just ignores it.
>
>
>
> "Paul" <pz****@rogers. com> wrote in message
> news:<L9******* *************@r ogers.com>...
>> Try using an ampersand instead:
>>
>> &/ &/ &/ &/ &/ &/ &/ &/
>>
>> Paul
>>
>> "Paul" <pc*******@yaho o.com> wrote in message
>> news:78******** *************** ***@posting.goo gle.com...
>> > hi,
>> >
>> > is there an input mask i could use on a report to do the following:
>> >
>> > (1) if i enter "THISISATES T" on my form, i want
>> > the text box on my report to display: "T H I S I S A T E S T".
>> >
>> > (2) if i enter "THIS IS A TEST" on my form, i want
>> > the text box on my report to display: "T H I S I S A T E S
>> > T".
>> >
>> > i tried putting in the input mask, "A A A A A A A A A A A A A", but
>> > it only works when there no spaces in between letters or words [i.e.
>> > refer to
>> > example (1)]. when i do example (2), i don't the result i want. it
>> > ignores the
>> > spaces i put in the form and displays it as it is "THIS IS A TEST".
>> >
>> > any ideas would be appreciated. feel free to send me email directly.
>> > thanks in advance.
>> >
>> > Paul

Nov 13 '05 #6
Thanks for the prompt reply.

Here's the input mask on the report's text box: C" "C" "C" "C"
"C" "C" "C" "C" "C" "C" "C" "C;;_

Test it with "INPUTMASK" , "INPUT MASK", "WWWWWW" and
"WWW WW W"

Paul

"Paul" <pz****@rogers. com> wrote in message news:<Xf******* *************@r ogers.com>...
Ok Paul
,
Make sure you are on the Input Mask line and not the Format line.
Copy and paste the exact values from the Input Mask line into this group
replying to this post and I will take a look at it.

Paul

Nov 13 '05 #7
OK Paul,

I tried it out...and it does not work...I dont know why. However, there is
still a simple solution.
Remove the input mask from the controls property.

On the AfterUpdate event of your field add this:
YourControlName .InputMask = "C\ \ \ \ C\ \ \ \ C\ \ \ \ C\ \ \ \ C\ \ \ \ C\
\ \ \ C\ \ \ \ C\ \ \ \ ;0;_"
This particular example uses 4 spaces between each optional character. You
can adjust it to your exact input string....try it out by typing 1 to 8
characters.

Let me know how it works for you.
Paul
"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** **@posting.goog le.com...
Thanks for the prompt reply.

Here's the input mask on the report's text box: C" "C" "C" "C"
"C" "C" "C" "C" "C" "C" "C" "C;;_

Test it with "INPUTMASK" , "INPUT MASK", "WWWWWW" and
"WWW WW W"

Paul

"Paul" <pz****@rogers. com> wrote in message
news:<Xf******* *************@r ogers.com>...
Ok Paul
,
Make sure you are on the Input Mask line and not the Format line.
Copy and paste the exact values from the Input Mask line into this group
replying to this post and I will take a look at it.

Paul

Nov 13 '05 #8
pc*******@yahoo .com (Paul) wrote in
news:78******** *************** ***@posting.goo gle.com:
hi,

is there an input mask i could use on a report to do the following:

(1) if i enter "THISISATES T" on my form, i want
the text box on my report to display: "T H I S I S A T E S T".

(2) if i enter "THIS IS A TEST" on my form, i want
the text box on my report to display: "T H I S I S A T E S
T".


I would suggest that you make a function which get a string as input and
inserts spaces.

E.g
Function InsertSpaces(In putstring As String) As String
Dim i As Integer
Dim Outputstring As String
For i = 1 To Len(Inputstring )
Outputstring = Outputstring + " " + Mid(Inputstring , i, 1)
Next
InsertSpaces = Mid(Outputstrin g, 2)
End Function

Use the function as control source for the field in the report.

Hope this helps

--
Rolf
Nov 13 '05 #9
Thanks for the reply.

It works on the form but, it doesn't work on the report.

Example: If I specify 4 spaces in between the characters, "TEST" will
display "T E S T" on the form. However, on the
report
it displays "T E S T".

With regards to the number of spaces in between the characters on the
form, it works but, it seems like it still putting a single space on
the report.

With regards to the number of spaces in between words, it works on the
report but, it's only putting a single space.

Example: "TEST ME" on the form will come out as "T E S T M E" on the
report.

Thanks for all your tips. I could probably work on this but, if you
have a better solution, please let me know. Thank you very much. I
appreciate all your help.

Paul

"Paul" <pz****@rogers. com> wrote in message news:<la******* *************@r ogers.com>...
OK Paul,

I tried it out...and it does not work...I dont know why. However, there is
still a simple solution.
Remove the input mask from the controls property.

On the AfterUpdate event of your field add this:
YourControlName .InputMask = "C\ \ \ \ C\ \ \ \ C\ \ \ \ C\ \ \ \ C\ \ \ \ C\
\ \ \ C\ \ \ \ C\ \ \ \ ;0;_"
This particular example uses 4 spaces between each optional character. You
can adjust it to your exact input string....try it out by typing 1 to 8
characters.

Let me know how it works for you.
Paul
"Paul" <pc*******@yaho o.com> wrote in message
news:78******** *************** **@posting.goog le.com...
Thanks for the prompt reply.

Here's the input mask on the report's text box: C" "C" "C" "C"
"C" "C" "C" "C" "C" "C" "C" "C;;_

Test it with "INPUTMASK" , "INPUT MASK", "WWWWWW" and
"WWW WW W"

Paul

"Paul" <pz****@rogers. com> wrote in message
news:<Xf******* *************@r ogers.com>...
Ok Paul
,
Make sure you are on the Input Mask line and not the Format line.
Copy and paste the exact values from the Input Mask line into this group
replying to this post and I will take a look at it.

Paul

Nov 13 '05 #10

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

Similar topics

1
6281
by: Miranda Evans | last post by:
In my application, a text box control resides in a form. The text box control is unbound, but--assuming all edits are passed when the user click a command button on the form--the contents of the text box control end up in a field in a table with a data type of Date/Time. Is it possible to set up a mask on this text box control such that if...
2
3704
by: johnp | last post by:
Hi, Our Tech department updated users to Office 2003 this week. Now the input mask in one of the applications is showing up as: (###) ###-### The input mask wizard works correctly when I redo the mask. But in form view, the mask appears reverts to the previous.
3
3319
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't like. How to get the fist character uppercased without an input mask or without ____ (underscores). When I click with the mouse on an empty field,...
2
1363
by: bobh | last post by:
Hi All, Been trying to get a typed entry to display as I neeed it to and can't get it to work. I've been playing around with field datatype and input mask but no luck so, maybe you can help example; I want the user to be able to enter 1.5 in a box on a form and when the user presses tab or enter I want the value to display and store as...
2
5408
by: sparks | last post by:
Can you do this. We have some fields with double set and an input mask of fixed decimal place 2 input mask ###.## works great..
2
1775
by: ilogboy | last post by:
Below is a copy of my Hangman project... I am missing a couple more functions and I don't know how to enhance it... Here are the things I want it to do: 1) I want it to determine the scores for the player. 2). I want it to display the letter that had already been guessed. 3) and I want it to determine when the winner wins... TRY THE CODE...
8
7492
by: =?Utf-8?B?QWw=?= | last post by:
I am working in vb2005. how can I calculate business days (not including holidays and weekends) between 2 dates? thanks Al
12
1618
by: Nezhate | last post by:
Hi There, I'm writing a program that takes a decimal number and returns it's binary equivalent. the problem is that I don't know how to return (from function) the binary value as an array of cocatenated characters. For example : I want to convert number 3 using 4 bits, ie 3 <----"0011". After executing, I'm getting this warning: warning:...
3
1879
by: milov | last post by:
Project to do simulation testing (me teacher). Page one writes in real time to page two...both displayed at sam time with frames. Code below. Problem...I want to keep score. Each choice needs a value between (-3 and 3) to be summed for final score. second problem, I want checkbox to be permanent, that is once selected no unselect. Thanks fro...
0
7425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6009
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.