473,396 Members | 2,003 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.

Space between fields

Frinds, I am creating a form which exports and prints data to a Word
file named FORM1.
This word file has some fields which I have bookmarked and one of its
fields is named NAME.

The code that export the Access data to my bookmarked Word fields is:

..Selection.Goto wdGoToBookmark, Name:="NAME"
..Selection.TypeText rstCases!FIRSTName & " " & rstCases!LASTName

You will notice that my code exports two Access fields named FIRSTName
and LASTName.

Two are the problem I am having.
1) Whan I export the data, the first and last name are concatenated. I
would like to give a space between the first and last name. I have
tried to add a comma (,) in between the " " but it does not work.

2) My second problem is despite my Access fields are simply text field
with a CAPITOL LETTER format (>) when I export the data, it is shown
in small letters.

Any help?

Thanks.
Nov 12 '05 #1
1 2604
I have found problems in access calling fields "Name". Suggest using
"WholeName" or something similar.

Try
Dim WholeName as String
WholeName = UCase(rstCases!FIRSTName & ", " & rstCases!LASTName)
That should do the concatenation and convert to upper case
Then
.Selection.TypeText WholeName

Phil
"Paolo" <jp***@tin.it> wrote in message
news:9f**************************@posting.google.c om...
Frinds, I am creating a form which exports and prints data to a Word
file named FORM1.
This word file has some fields which I have bookmarked and one of its
fields is named NAME.

The code that export the Access data to my bookmarked Word fields is:

.Selection.Goto wdGoToBookmark, Name:="NAME"
.Selection.TypeText rstCases!FIRSTName & " " & rstCases!LASTName

You will notice that my code exports two Access fields named FIRSTName
and LASTName.

Two are the problem I am having.
1) Whan I export the data, the first and last name are concatenated. I
would like to give a space between the first and last name. I have
tried to add a comma (,) in between the " " but it does not work.

2) My second problem is despite my Access fields are simply text field
with a CAPITOL LETTER format (>) when I export the data, it is shown
in small letters.

Any help?

Thanks.

Nov 12 '05 #2

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

Similar topics

0
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's...
6
by: DH | last post by:
I have a VERY basic question about figuring database size. I've inherited a database which is generally similar to this basic one: Item, Red, Blue, Green, Yellow (text), (int),(int),(int),(int)...
3
by: Andy B | last post by:
I've tried using Trim or RTrim to strip trailing space characters from my data. When I check on the transformed data space characters are still there. We have an address table containing two...
2
by: panorris | last post by:
I am an infrequent user of Access and have a problem which I hope someone may be able to help me with. I have a text field in a database which contains UK postcodes similar to EH4 7TY or DN10 9IU....
12
by: JA | last post by:
Is there a way to remove all the white space in the fields? I have been using Find-and-replace - looking for 2 or 3 or 4 or 10 spaces and replacing them with none. I don't want to replace single...
1
by: nikhil86 | last post by:
Hey guys I have a weird problem. I have a form which collects data, writes it to a database and also sends out an email returning certain fields. This works fine when I enter something in the field...
3
by: PdBeer | last post by:
Hi everyone, I am writing a program in vb6 that reads lines from a text file, these lines are space and tab-delimited. Currently I am using the Split function to split each string according to a...
0
by: fyitang | last post by:
On Mar 18, 1:04 am, "Henning Krause " <newsgroups_rem...@this.infinitec.dewrote: thanks Henning. i have tried this one <"test test@gmail.com">, and this worked. thank you.
8
by: =?Utf-8?B?TTFpUw==?= | last post by:
I’m trying to parse out Amazon S3 server logs which are space delimited. However date fields are in the following form: When I try to use the following code to split the record on the...
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:
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.