Private Sub dgrQingdan_Error(ByVal DataError As Integer, Response As Integer) 
'新记录图号必须输入 
Response = 0 
MsgBox "请输入产品图号", "输入出错!" 
dgrQingdan.SetFocus 
End Sub

解决方案 »

  1.   

    MsgBox "请输入产品图号", , "输入出错!"
    中间加一个",",或者 vbOKOnly
      

  2.   

    MsgBox "请输入产品图号,输入出错!" 
      

  3.   

    "请输入产品图号" & "输入出错!" 
      

  4.   

    msgbox "请输入产品图号!",48,"输入出错"
      

  5.   

    MsgBox "请输入产品图号", ,"输入出错!" 
      

  6.   

    MsgBox "请输入产品图号", ,"输入出错" 
      

  7.   

    MsgBox "请输入产品图号", ,"输入出错"