想实现当控件未填写内容时,跳出提示,并且光标返回控件。参考了别人案例后
With e.Form If .Controls("ComboBox1").value Is Nothing Then msgbox("请选择品种!",64,"提示") .Controls("ComboBox1").Select()
End if
End with
但在提示语句结束后,光标会停到Tab顺序第一位的datetimepicker1上,请问有什么方法解决?