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

Can someone help me split a field

Status
Not open for further replies.

pacspro

IS-IT--Management
Joined
Sep 24, 2002
Messages
3
Location
US
I have a field that contains the date and time separated by a space. I need to split them into different fields, which I have created. Would someone help me with a query that can do this.
Thanks
 
Is this field a Date type field? I guess it doesn't matter as long as the field can be converted to a valid date. Assuming it is a date field,:

Date only: format([your_date_field],"mm/dd/yyyy")

Time Only: format([your_date_field],"hh:nn:ss")

If it's an update query, put the Format() functions in the Update To row of the query grid for the respective fields, if append, put it in the Field row above the column to append to.

--Jim
 
Thanks you so much for your time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top