Solved

Insert a character into an access field in a report

Posted on 2014-03-11
9
311 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
ID: 39921925
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
ID: 39921954
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
ID: 39921967
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
ID: 39921973
Thank you so much for giving me the newb version exactly what I needed.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 2

Author Comment

by:beatified
ID: 39921981
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
ID: 39921995
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
ID: 39922010
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
ID: 39922014
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
ID: 39922382
What does your query look like? Those are asking for parameters like you are expecting user input.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

911 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

20 Experts available now in Live!

Get 1:1 Help Now