I have an ElseIf statement. If the field is left blank when the tech hits the save/update button. It prompts them that the field is empty and to fill it in, then takes them to that field.
Problem is that if the field is filled in, it still pops up the prompt and will not allow the tech to save/update. How to fix this. I need it to prompt the tech based on two field values if they are true.
Fields: DateIn
Type (within type, it must be either Desktop or Laptop). There are
two more values for Type but only Desktop or Laptop must be
true along with the DateIn value.
If either one of the other two values are true and the DateIn
value equals "Date". Then I don't want the msg.
Here is my ElseIf statement:
ElseIf IsNull(Me.Prior_User) And Me.DateIn And Me.Type = "Laptop" Or Me.Type = "Desktop" Then
MsgBox "OOPS! You forgot to enter the prior user. If you do not have or know it, enter 'unknown'."
DoCmd.GoToControl "Prior User"
If I leave out the me.type or use just one or the other. It works fine.
I think having both the me.types are killing it.
You all have been great in helping me fix other issues. Hope you can help with this one.
Problem is that if the field is filled in, it still pops up the prompt and will not allow the tech to save/update. How to fix this. I need it to prompt the tech based on two field values if they are true.
Fields: DateIn
Type (within type, it must be either Desktop or Laptop). There are
two more values for Type but only Desktop or Laptop must be
true along with the DateIn value.
If either one of the other two values are true and the DateIn
value equals "Date". Then I don't want the msg.
Here is my ElseIf statement:
ElseIf IsNull(Me.Prior_User) And Me.DateIn And Me.Type = "Laptop" Or Me.Type = "Desktop" Then
MsgBox "OOPS! You forgot to enter the prior user. If you do not have or know it, enter 'unknown'."
DoCmd.GoToControl "Prior User"
If I leave out the me.type or use just one or the other. It works fine.
I think having both the me.types are killing it.
You all have been great in helping me fix other issues. Hope you can help with this one.