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

Return value of Text Field using Month Abbrveiations

Status
Not open for further replies.

mckenneyj

MIS
Joined
Jun 1, 2002
Messages
96
I have filed called "MonthPymtFor" Text 3 char
Contents: JAN FEB MAR APR... NOV
Need to return the month value for each record
i.e. 1 2 3 4 .... 11


Thanks,
John McKenney
Work Hard... Play Harder
 
Try:

Month(CDate([MonthPymtFor] & "/1/2004"))

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
MCSA, CNA, Net+, A+
w: rljohnso@stewart.com
h: wildmage@tampabay.rr.com
 
MonthNumber = Month("1 " & [MonthPymtFor] & " 2000")

- builds a string e.g. "1 FEB 2000", then returns the month number (quick & dirty solution).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top