[求助]试用sqlcommand查询问题 Post By:2024/7/23 14:35:00 [显示全部帖子]
Dim cmd As New S QL Co mmand cmd.ConnectionName =
"数据源名称" Dim dt As
DataTable Dim
cmb As
WinForm.ComboBox cmd.Comm and Text = "SE\ECT
DISTINCT FORMAT(数量*单价,'F2') as 总价 From {订单}"
dt = cmd.ExecuteReader() cmb =
e.Form.Controls("ComboBox1") cmb.Com boLi st= dt.GetComboListString("客户")