Unfortunately the Formula is returning a string so the number tab is not an option.
I need to fromat it before it is returned.
Main Topics
Browse All TopicsI have the following problem when the value is returned to the screen the number show like 2,009 how do I rid of the comma? Is there a format function?
Dim MonthInt as number
Dim MonthString as String
Dim yearString as Number
MonthInt = Month({StaffProjVar;1.Begi
MonthInt = (MonthInt + 11)
If (Monthint) <= 12 then
MonthString = MonthName(MonthInt)
Else
MonthInt = MonthInt - 12
MonthString = MonthName(MonthInt)
YearString = (Year({StaffProjVar;1.Begi
End If
Formula = (MonthString + " " + (Cstr(YearString)))
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Mittensonmaui:
You can streamline this formula to one line and get the result you want like this:
formula = cstr(dateadd("m",11,{Staff
There is no need to break things down into months and years. You can just add 11 months to the date, then format it MonthName and Year using the CStr function
Business Accounts
Answer for Membership
by: emoreauPosted on 2008-01-25 at 11:32:14ID: 20745571
You can format your object by right-clicking on it, select Format Object, and from the Number tab, select the format without the comma -1123