
February 17th, 2003, 11:23 PM
|
|
Contributing User
|
|
Join Date: Jul 2002
Posts: 31
Time spent in forums: 3 h 2 m 39 sec
Reputation Power: 11
|
|
|
try this:
if your are referring to a control on a form i believe you need to call it as in
MyForm.MyControl.Value
if its a text box i think it should be
MyForm.MyControl.Text
....however you may have to set focus first on the relevant controls to get the value.
dim val1 as String, val2 as String
MyForm.MyControl.SetFocus
val1 = MyForm.MyControl.Value
MyForm.MyControl.SetFocus
val2 = MyForm.MyControl.Value
then do your comparison with val1 and val2.
hope that helps....if thats what you were trying to accomplish.
|