我想定义一个函数,在on change里.
如下:
sub display
Dim rs
set rs=server.CreateObject("ADODB.recordset")
rs.Open "select TXDZ from oa_crm_khxx where khbh=" & skhjc ,conn,1,1
if not rs.EOF then
frmxx.khqm.value=rs(0) & ""
end if
rs.Close
rs.Open "select TXDZ from oa_crm_khxx where khbh=" & skhjc ,conn,1,1
是不是应该改成这样
rs.Open "select TXDZ from oa_crm_khxx where khbh='" & skhjc&"'" ,conn,1,1