Mar 17 2021 01:55 PM
Greetings group,
I need some assistance in MS Access Report
I'm trying to create a letter report in Access using text boxes bonded to a Query and additional data as sample:
=Trim([FirstName] & ", " & [LastName]) + “a” &( [Title]) +”is requesting ”& ([Hours]) +” hours of An Advance of Time”
but i don't know how i can properly do the expression so i can include the text in an unbound text field ( combination of text from a query and added text that doesn't change)
on the attached document is the design view of the report and the report that i'm trying to do ( as sample the first paragraph all the information together but will change the name, title and amount of hours)
Thank you,
Mar 18 2021 12:21 AM
Mar 18 2021 06:30 AM - edited Mar 18 2021 06:31 AM
SolutionHi,
I can see the picture of your report preview but it doesn't tell me anything about what you are trying to accomplish. As a general rule: If you want to concatenate strings don't use the plus sign + but always the ampersand & . Otherwise Access thinks you want to calculate with numeric values e.g. in your "Hours" field. So your expression could look like this:
= Trim([FirstName] & ", " & [LastName]) & " a " & [Title] & " is requesting " & [Hours] & " hours of An Advance of Time"
If that doesn't work try a step by step approach. Test only with the first part of the expression, then the next until you get a problem. Then post your current test expression and the error message and symptoms.
Servus
Karl
*********
http://AccessDevCon.com
https://www.donkarl.com
Mar 19 2021 08:33 AM
Mar 18 2021 06:30 AM - edited Mar 18 2021 06:31 AM
SolutionHi,
I can see the picture of your report preview but it doesn't tell me anything about what you are trying to accomplish. As a general rule: If you want to concatenate strings don't use the plus sign + but always the ampersand & . Otherwise Access thinks you want to calculate with numeric values e.g. in your "Hours" field. So your expression could look like this:
= Trim([FirstName] & ", " & [LastName]) & " a " & [Title] & " is requesting " & [Hours] & " hours of An Advance of Time"
If that doesn't work try a step by step approach. Test only with the first part of the expression, then the next until you get a problem. Then post your current test expression and the error message and symptoms.
Servus
Karl
*********
http://AccessDevCon.com
https://www.donkarl.com