Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting text box on a Report

Status
Not open for further replies.

nthompson

MIS
Feb 8, 2001
9
US
I am attempting to format a text box which is based on the field Account_# from a query. In the control source I have: =MaskAccount([Account_#])

MaskAccount is the following function:

Public Function MaskAccount(strAccount As String) As String
MaskAccount = "xxxxxxxxxxxx" & Right(strAccount, 4)
End Function

On my report I get #Error.

Any suggestions??
 
One thing to check. Is [Account_#] a text field? It's name implies a number type field, yet you are passing it as a string. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top