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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shorten Format Function

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
Here is an easy one I hope. Is there a way to write this in a shorter format so I don't have to enumerate every @? Some fields are even longer than this one.
Format(rs!ComDescription, "!@@@@@@@@@@@@@@@@@@@@@@@@@")

Thanks
 
Something like this ?
Format(rs!ComDescription, "!" & String(25, "@"))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I think you mentioned a variance in the length
of the fields, if so, (using PHV's suggestion)...

Dim x as Integer
x = Len(rs!ComDescription)

Format(rs!ComDescription, "!" & String(x, "@"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top