If OPENV = 0 Then
MsgBox "You are not right!", vbInformation, "Warring"
DoCmd.CLOSE这里我的本意是如果打开窗体的权限为假,则关掉打开的窗口FTYINPUT,但是这里因为不能用EXIT SUB 命令.因此程序转回到FTYINPUT继续执行.有什么办法关掉FTYINPUT这个窗体,
Else
If NEWV = -1 Then
Forms(PRG).NEW.Enabled = True
Else
Forms(PRG).NEW.Enabled = False
End If
If SAVEV = -1 Then
Forms(PRG).SAVE.Enabled = True
Else
Forms(PRG).SAVE.Enabled = False
End If
If EDITV = -1 Then
Forms(PRG).EDIT.Enabled = True
Else
Forms(PRG).EDIT.Enabled = False
End If
If DELETEV = -1 Then
Forms(PRG).DELETE.Enabled = True
Else
Forms(PRG).DELETE.Enabled = False
End If