I put string...
Gonna have to give more information than that.
> > If you replace the form1.txt1.text with an actual value all works?

Signature
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
> I put string...
>
[quoted text clipped - 41 lines]
> > > > > Thanks,
> > > > > Kate
Kate - 31 Dec 2004 02:15 GMT
sorry veign :p
ok, here's what I put:
doesn't work-
Set sdoRs = sdoConn.Execute("select mslink as msl from slope where slope_num
= '" & form1.txt1.text & "'")
works-
Set sdoRs = sdoConn.Execute("select mslink as msl from slope where
slope_num = '2sw-a/c134'")
the value of msl of '2sw-a/c134' should be displayed in txt2, if I enter
2sw-a/c134 in txt1 (using the 'doesn't work' code). But when I tried to
enter value in txt1, I got the run-time error 3021. And of course, when I
use the 'works' code, I can enter any value in txt1, and still get the msl of
2sw-a/c134 in txt2.
thanks much!
kate
> Gonna have to give more information than that.
>
[quoted text clipped - 51 lines]
> > > > > > Thanks,
> > > > > > Kate
Kate - 31 Dec 2004 02:17 GMT
sorry veign :p
here's what I put:
doesn't work-
Set sdoRs = sdoConn.Execute("select mslink as msl from slope where slope_num
= '" & form1.txt1.text & "'")
works-
Set sdoRs = sdoConn.Execute("select mslink as msl from slope where slope_num
= '2sw-a/c134'")
the value of msl of 2sw-a/c134 should be displayed in txt2, if I enter
'2sw-a/c134' in txt1 (using the 'doesn't work' code). but when I tried to
enter value in txt1, I got the run-time error 3021. and of course, when I
used the 'work' code, I can enter any value in txt1, and still got the msl of
2sw-a/c134 in txt2.
thanks much!
kate
> Gonna have to give more information than that.
>
[quoted text clipped - 51 lines]
> > > > > > Thanks,
> > > > > > Kate