如果值更大,我想提示错误。通过 msgbox 显示错误,但我面临的问题是单击“OKAY”后执行进一步任务,我的编码如下所示,请帮助我,因为 docmd 不起作用,我想在单击“OKAY”后关闭表单
编码:-
Function Tokenincrease()
Dim Test As String
Test = MsgBox(" One Day One Token", vbExclamation + vbokayonly, "Sorry")
If Test = vbOK Then
DoCmd.OpenForm "Token Isuance Form LH"
Else
DoCmd.Close
End If
End Function