Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / December 2005

Tip: Looking for answers? Try searching our database.

Formatting a Text Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ - 08 Dec 2005 17:42 GMT
I have a text box and in the control source I have the following:=[AFS Bank
Number] & "-" & [Customer Number]. How would I format this control source so
all numbers show up in the report (ie 03-0000555555)? It's dropping the zeros
in customer number (only printing 03-555555). Thanks in advance.
fredg - 08 Dec 2005 18:05 GMT
> I have a text box and in the control source I have the following:=[AFS Bank
> Number] & "-" & [Customer Number]. How would I format this control source so
> all numbers show up in the report (ie 03-0000555555)? It's dropping the zeros
> in customer number (only printing 03-555555). Thanks in advance.

If [CustomerNumber] were a Text datatype field (which it should be)
you would not be having this difficulty. If you're not going to be
performing math calculations on the field, make it Text.

As it is a Number datatype, use:
=Format([AFS Bank Number],"00") & "-" & Format([Customer
Number],"0000000000")
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.