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

Selecting a portion of a field between two delimeters 1

Status
Not open for further replies.

bravo6

IS-IT--Management
Mar 23, 2006
83
US
I have a field that has the format 2/1/2008 or, depending on the month and day, it could be 10/13/2008. I want my query to select only what is between the slashes and always return a 2 digit (zero filled) number. So 2/1/2008 should return "01" and 10/13/2008 should return "13"

Thanks and thanks to everyone that helped me yesterday
 
in the table is it a date field or a text field formatted to LOOK like a date?

Leslie

In an open world there's no need for windows and gates
 
I beleive it is a date field
 
Format(yourDateField, "dd")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top