D
Danishham via AccessMonster.com
I have attempted to search through the archives but cannot solve this problem.
I am using Access 2007.
I have a text field for Social Security Number with input mask, limited to 11
characters.
I also have a text field called AcceptDeny with the combo box choices of
Accepted or Denied.
I am trying to create a macro that will prompt the user to enter a SSN (if
not already input) when the AcceptDeny field is changed to Accepted.
I reviewed the guidelines on identifying Null and empty string and came up
with a Macro that looks like this:
In the Conditions column:
(IsNull([Forms]![applicantform]![SSN]) Or ([Forms]![applicantform]![SSN]=""))
And [Forms]![applicantform]![AcceptDeny]="Accepted"
The Action column is MsgBox
The Arguments column is: "Please enter a Social Security Number for this
student."
This yields a Type Mismatch error when the macro is run while the form is
loaded.
Please advise.
Danishham
I am using Access 2007.
I have a text field for Social Security Number with input mask, limited to 11
characters.
I also have a text field called AcceptDeny with the combo box choices of
Accepted or Denied.
I am trying to create a macro that will prompt the user to enter a SSN (if
not already input) when the AcceptDeny field is changed to Accepted.
I reviewed the guidelines on identifying Null and empty string and came up
with a Macro that looks like this:
In the Conditions column:
(IsNull([Forms]![applicantform]![SSN]) Or ([Forms]![applicantform]![SSN]=""))
And [Forms]![applicantform]![AcceptDeny]="Accepted"
The Action column is MsgBox
The Arguments column is: "Please enter a Social Security Number for this
student."
This yields a Type Mismatch error when the macro is run while the form is
loaded.
Please advise.
Danishham