设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1704|回复: 4
打印 上一主题 下一主题

[窗体] 请问条码扫描后如何进入下一条新数据?谢谢您的回复

[复制链接]
1#
发表于 2012-2-13 14:37:14 | 显示全部楼层
这个是我的jump模块,我不是用条码枪扫的,我是用摄像头扫的.
Sub Jump()


If strBarcodes = "" Then
Exit Sub
Else
Form_发票.Combo51 = strBarcodes
'strBarcodes = ""
Form_发票.Combo51.SetFocus
DoEvents
SendKeys "^x", True
DoEvents
SendKeys "^v", True
DoEvents
SendKeys "{ENTER}", True
DoEvents
End If

End Sub
2#
发表于 2012-2-13 15:08:49 | 显示全部楼层
这个是我摄像头扫描条码用的跳转程序
Sub Jump()


If strBarcodes = "" Then
Exit Sub
Else
Form_发票.Combo51 = strBarcodes
'strBarcodes = ""
Form_发票.Combo51.SetFocus
DoEvents
SendKeys "^x", True
DoEvents
SendKeys "^v", True
DoEvents
SendKeys "{ENTER}", True
DoEvents
End If
End Sub
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-6-3 14:43 , Processed in 0.109224 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表