473,397 Members | 1,972 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,397 software developers and data experts.

text field with spaces possible?

jdesaer
I'm testing an application and use Access to store the test data in.
But there is a field in my application that has 4 blancs. So I want to store 4 spaces in the corresponding field in Access, but Access removed these 4 spaces after losing the focus.
Is there a possibility to store only spaces in a text field?


Thanks,

Jan
Nov 28 '06 #1
4 1658
NeoPa
32,556 Expert Mod 16PB
I couldn't manage to find a way to get it to hold any trailing spaces in a text field - sorry.
Nov 28 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
I'm testing an application and use Access to store the test data in.
But there is a field in my application that has 4 blancs. So I want to store 4 spaces in the corresponding field in Access, but Access removed these 4 spaces after losing the focus.
Is there a possibility to store only spaces in a text field?


Thanks,

Jan
Jan,

Spaces won't mean anything. If you explain what you are trying to do and why we may be able to suggest another approach.

Mary
Nov 28 '06 #3
Jan,

Spaces won't mean anything. If you explain what you are trying to do and why we may be able to suggest another approach.

Mary
I'm doing automated testing. I have a script that contains the flow (which screens have to be opened, ...) and a database that contains the testdata (objectA = 5; objectB = customer1; ...). A certain object should contain " " or 3 spaces. The script reads the test data from the access database and checks if that value corresponds with the one of the tested application.
The access database contains forms with text boxes on it. One of the text boxes is the name of the object that has to be tested and another text box contains the value for this object.
The problem is that I can't fill spaces in this textbox ....
Any ideas?

Thx in advance,
Jan
Nov 29 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
I'm doing automated testing. I have a script that contains the flow (which screens have to be opened, ...) and a database that contains the testdata (objectA = 5; objectB = customer1; ...). A certain object should contain " " or 3 spaces. The script reads the test data from the access database and checks if that value corresponds with the one of the tested application.
The access database contains forms with text boxes on it. One of the text boxes is the name of the object that has to be tested and another text box contains the value for this object.
The problem is that I can't fill spaces in this textbox ....
Any ideas?

Thx in advance,
Jan
You can't populate with spaces alone. The only thing I can suggest is using 3 spaces plus some character like ' or using 3 other characters instead like an underline _.

Mary
Nov 29 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: James Turner | last post by:
I am trying to store formatted text (windows format) into a MySQL database and then retrieve it. The field in the database is a varchar. I cut and paste the test into a form field formatted, then...
3
by: Mark | last post by:
Hi, Im trying to validate a form, all the validating works apart from one field. This particular field must consist of the first 2 characters as letters, & the following 5 as numbers. And if it...
5
by: simon_s_li | last post by:
Hi, I have 5 fields in line where I need to drag and drop the text from one field to another field and then all the fields need to re-order themselves. So for instance if I drag the text in...
14
by: Thelma Lubkin | last post by:
I am trying to limit the user's options to the choices offered by the combobox text, but I don't want this to extend to how he spaces out the text, e.g. 'abcdefg' and 'ab cd efg' should be...
2
by: JohnR | last post by:
When creating an msAccess db within the Access UI itself the fields that are text are NOT padded with blanks. For example, if I have a 10 char field and put in "HI" and then when I come back to...
7
by: usenet | last post by:
I would like, if it's possible, to set the value of a field in a table to a number of spaces. One space would be fine, I just want to be able to set the field to a default value that's not NULL...
9
by: NEWSGROUPS | last post by:
I have data in a table in an Access 2000 database that needs to be exported to a formatted text file. For instance, the first field is an account number that is formatted in the table as text and...
6
by: MikeC | last post by:
Folks, Can the width specifier be used in a printf() text string? If I execute... printf("%4s", ".........."); it prints ten dots. If I execute
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.