如果该字段为空,以下将打开一个弹出窗口,如果通过名为MVR的MSVB用户窗体输入任何字段留空,我希望它弹出。我有4个字段,如果没有填写,我可以有四个单独的弹出窗口吗?
'find first empty row in database
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1
'check for a MVR number
If Trim(Me.txtMVR.Value) = "" Then
Me.txtMVR.SetFocus
MsgBox "Please enter MVR number"
Exit Sub
End If
答案 0 :(得分:0)
将以下代码添加到您的_loadingView.center = self.navigationController.view.center;
[self.navigationController.view addSubview:_loadingView];
user_form代码模块中(在let value = 'Framework';
this.GridData.filter(this.filterData.bind(gridData , value));
filterData(value,gridData) {
return gridData.Scope == value;
}
事件中,或您拥有的内容)。
它将遍历User_Form中的所有MSVB
es,如果其中一个留空,则会弹出CommandButton1_Click
。
TextBox