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

convert text??

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
I get a text field [pattern] that contains pattern sizes ex.12x12. How do I convert it to a number field for calculations? I've used the Left and Right functions to get the first 2 numbers and last 2. It will always contains two 2 digit numbers.

Thanks
Paul
 
A starting point:
Dim a, x As Long, y As Long
a = Split(Me!pattern, "x")
x = Val(a(0))
y = Val(a(1))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top