Solved

Insert a character into an access field in a report

Posted on 2014-03-11
9
308 Views
Last Modified: 2014-03-17
I need to display a hyphen in an access report that is not in the data itself.

So in the example I included in the screen cap. 51D should end up as 51-D in the report.

This ones got me running in circles any help would be appreciated.

Thanks,
BTW I'm a newbie Access users.
Image-004.jpg
Image-005.jpg
Image-006.jpg
0
Comment
Question by:beatified
  • 5
  • 4
9 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
Looking at the representative data, you have the number is always two number and a letter. So iIn the query that you use to bind the data, you can use the LEFT and RIGHT functions.

ApartNumber: (LEFT([ApartmentNumber], 2) & '-' & RIGHT([ApartmentNumber],1))
0
 
LVL 2

Author Comment

by:beatified
Comment Utility
Ok that worked but its converting the Uppercase "D" to lower case "d". Is there a way to fix this?
Image-007.jpg
0
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
Comment Utility
You can use UCase to change it to upper case.

ApartNumber: (LEFT([ApartmentNumber], 2) & '-' & UCase(RIGHT([ApartmentNumber],1)))
0
 
LVL 2

Author Comment

by:beatified
Comment Utility
Thank you so much for giving me the newb version exactly what I needed.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 2

Author Comment

by:beatified
Comment Utility
I will start another question if you have an answer for this since it is a different question. But the goal in this is to autofill a form I have in both word and PDF. Is it possible to overlay the data directly onto the PDF in Access. So that I only have to print once and not once for the form and once for the data? If so just answer Yes and I will post a new question.
0
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
I am sure it is possible, but a little out of what I have ever done. I know that you can export a report. Check out this link and see if it fits what you want to do.

http://office.microsoft.com/en-us/access-help/distribute-a-report-electronically-HA010206320.aspx
0
 
LVL 2

Author Comment

by:beatified
Comment Utility
Ok thanks I will probably post a question anyway so your welcome to take a stab at it if you want.
0
 
LVL 2

Author Comment

by:beatified
Comment Utility
One last thing everything is working fine except I'm getting 2 query reqests for data to match. As seen in the sreen caps. Any Idea what this is?
12
0
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
What does your query look like? Those are asking for parameters like you are expecting user input.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now