a.sinatra
quik
- Local time
- Yesterday, 17:22
- Joined
- Jan 10, 2004
- Messages
- 262
Code:
Public Function fConversion()
'Checks to see if data is entered in first box
If IsNumeric(Me!cmConversion1) Then
'Convert centemeters to inches
Dim convert As Double
Dim cm As Double
convert = Me!cmConversion1
cm = 0.393700787
Me!cmConversion2 = fWidthRound(Left(cm * convert, 5))
Else
'Displays error and resets everything, and gives focus to first box
MsgBox "Please specify numbers only, letters and words cannot be converted.", vbExclamation, ErrTitle
Me!cmConversion1 = ""
Me!cmConversion2 = ""
Me!cmConversion1.SetFocus
End If
End Function
This code shows up twice in 3 different forms, how do i call it to run, and does the code structure look ok.
Im sorry for asking so many questions, i should be getting access bible 2003 very soon, i got access inside out, but it doesnt help much (its too basic)
________
TOYOTA MOTOR MANUFACTURING DE BAJA CALIFORNIA SPECIFICATIONS
Last edited: