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

Changing Text to Date 1

Status
Not open for further replies.

SharonBrown

Technical User
Mar 2, 2001
3
US
I need to change two data fields that were created as "varchar" by our programmer. The two fields display the hours worked per day and the number of days per week. He needed to display the answer in our application. I need to be able to use the information to place in a report.

How can you change this to a number so I can sum the two together?

Thanks,
Sharon
 
Your heading was "Text to Date" but your question is to a number?

There is a formula in FAQ 1.B that allows you to convert a text date to a true date. It works with a text value like:

1/15/1997

----
Otherwise, the VAL() function converts a character numeric to a true numeric. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
I did mean to number, not date!

Thanks for the answer! I will go ready up on Val()

Sharon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top