Private Sub Command2_Click()
Dim jj
Dim sl
Dim je
Call Db_Conn
'If Rs.State = 1 Then
' Rs.Close
'End If
'Rs.Open "select mi,mxid,mxgqrq from mingxi where mxgqrq <='" & Date & "' and mxlb='1' ", Conn, 1, 1
If Rs.State = 1 Then
Rs.Close
End If
Sql = "select z.zki,z.zkid,z.zkkc,m.mi,m.mxid,m.mxlb,m.mxrq,m.mxsl,m.mxjj,m.mxje,m.mxscrq,m.mxgqrq,m.mxxsdj,m.mxlsh from zongku as z inner join mingxi as m on m.mxid=z.zkid where m.mxgqrq <='" & Date & "' and m.mxlb='1' " & " order by z.zki desc "
Rs.Open Sql, Conn, 1, 1
If Rs.EOF = False Then
Dim list As ListItem
Set list = g_q.ListView2.ListItems.Add(, "c" & countid, Trim(Rs.Fields("mi")))
' If IsNull(Rs.Fields("mxtxh")) = False Then
' list.SubItems(1) = Trim(Rs.Fields("mxtxh"))
' End If
' If IsNull(Rs.Fields("mxname")) = False Then
' list.SubItems(2) = Trim(Rs.Fields("mxname"))
' End If
If IsNull(Rs.Fields("mxjj")) = False Then
list.SubItems(3) = Trim(Rs.Fields("mxjj"))
jj = Trim(Rs.Fields("mxjj"))
End If
If IsNull(Rs.Fields("mxsl")) = False Then
list.SubItems(4) = Trim(Rs.Fields("mxsl"))
End If
list.SubItems(5) = Val(jj) * Val(sl)
je = Val(jj) * Val(sl)
If IsNull(Rs.Fields("mxscrq")) = False Then
list.SubItems(6) = Trim(Rs.Fields("mxscrq"))
End If
If IsNull(Rs.Fields("mxgqrq")) = False Then
list.SubItems(7) = Trim(Rs.Fields("mxgqrq"))
End If
'If IsNull(Rs.Fields("mxgqrq")) = False Then
' list.SubItems(7) = Trim(Rs.Fields("mxgqrq"))
'End If
' countid = countid + 1
g_q.Show 1
Else
' MsgBox "仓库中没有条型号是" & Trim(Text1.Text) & "的" & Trim(Text2.Text) & ",请选择不型号的同类商品", 0 + 16, "空仓提示"
' Text1.SetFocus
' Text1.SelStart = 0
' Text1.SelLength = Len(Text1.Text)
MsgBox "NOT g+!"
Exit Sub
End If
End Sub
VB超市销售系统 超市销售系统 超市销售系统
3星 · 超过75%的资源 需积分: 9 33 浏览量
2009-03-21
17:20:18
上传
评论 3
收藏 137KB RAR 举报
nmgzhf
- 粉丝: 6
- 资源: 5
最新资源
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
- 基于MIC+NE555光敏电阻的声光控电路Multisim仿真原理图
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈