Reputation: 1556
I'm experimenting with custom formatting of strings and I wrote a simple function to do this task as shown below.
Function written inside the "Code" pane of the report properties:
Function FormatProject(Project AS String) AS String
IF (Project Is Nothing) Then
Return Nothing
Else
Return Format(Project, "## #####")
End If
End Function
Input: PR12345
Expected Output: PR 12345
Actual Output: ## #####
I'm using the hash signs because I wrote a similar function to customize a phone number and it worked for that but perhaps it only works with numeric data types and I might need to use a different placeholder.
Thank you in advance!
Upvotes: 0
Views: 157