|
-
Nov 11th, 2011, 06:46 PM
#1
Thread Starter
Hyperactive Member
Truncate fields in a report
Hello Everyone:
I am trying to truncate fields in a report. Say you have a number of different names. If you put the fields in the report, they will have white space in them.
First------------------------middle----------------------last.
I had to put the -'s in because it autmatically took them out.
How can I make it so that they come out more like this?
First middle last with no spaces.
Thanks
Art W.
SLEEP: A Totally Inadequate Substation For Caffeine!
-
Nov 11th, 2011, 10:21 PM
#2
Re: Truncate fields in a report
what application are you working in?
what type of fields have you inserted?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 12th, 2011, 05:20 PM
#3
Thread Starter
Hyperactive Member
Re: Truncate fields in a report
Hi Everyone:
I am using MS Access 07, trying to bring text felds together.
Thanks
Art W.
SLEEP: A Totally Inadequate Substation For Caffeine!
-
Nov 13th, 2011, 02:21 AM
#4
Re: Truncate fields in a report
sorry i know nothing about access fields
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 13th, 2011, 04:33 PM
#5
Hyperactive Member
Re: Truncate fields in a report
You can create an Access Query with the information that you need. Within the Query you can combine multiple fields from the table, Such as;
Code:
fullname: [First] & [Middle] & [Last]
I know you said that you didn't want any spaces or anything, but as an idea you can also include other characters, such as;
Code:
fullname: [Last] & ", " & [First] & [Middle]
you may also use the Nz function of Access to eliminate any errors due to having a null value in a field, like;
Code:
fullname: Nz([First], "") & Nz([Middle], "") & Nz([Last], "")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|