<>请教高手(紧急)</P>
<>本地列表框在ACCESS 本地数据表没有问题,但是使用ADO 来做列表框数据源时无效,但是系统不提示错误代码...</P>
<> wostr2 = "select m_no as 物品编号,m_descript as 使用材料,s_price as 销售价格 from dbo_m_base where [m_type]='" & Trim(Me!txt_sitem) & "'"<br> Me!um_list.RowSourceType = "table/Query"<br> Me!um_list.RowSource = wostr2</P>
<P>异常</P>
<P><br>Set cnn = New ADODB.Connection<br>cnn.ConnectionString = "DSN=dataserver;UID=sa;PWD=888888;"</P>
<P> wostr2 = "select m_no as 物品编号,m_descript as 使用材料,s_price as 销售价格 from dbo_m_base where [m_type]='" & Trim(Me!txt_sitem) & "'"<br> Me!um_list.RowSourceType = "table/Query"<br> Me!um_list.RowSource = wostr2</P>
[此贴子已经被作者于2007-7-20 21:06:52编辑过]
|