Hi All,
I'm using Access Web App within Office 365 and I'm trying to check if a checkbox is selected when a specific customer is selected on a form.
Here's my situation:
Table1: Basic customer info, including a checkbox if the customer is 'blocked' or not.
Table2: Different locations for customers.
If one of my users goes to the Locations view/form and selects a location of a customer that is 'blocked' I want it to give a MessageBox. This works perfectly on Table1, but on Table2 it gives a Macro error.
Here is the code I use on the form for Table2:
---
If [CustomerData].[BlockedYes_or_No]=1 then
MessageBox "Some text goes here"
End if
---
In this case CustomerData=Table1 in my explanations
Can someone please explain what is the right way to reference a different table then the one the form is based on?
Thanks in advance and kind regards,
Lucas
I'm using Access Web App within Office 365 and I'm trying to check if a checkbox is selected when a specific customer is selected on a form.
Here's my situation:
Table1: Basic customer info, including a checkbox if the customer is 'blocked' or not.
Table2: Different locations for customers.
If one of my users goes to the Locations view/form and selects a location of a customer that is 'blocked' I want it to give a MessageBox. This works perfectly on Table1, but on Table2 it gives a Macro error.
Here is the code I use on the form for Table2:
---
If [CustomerData].[BlockedYes_or_No]=1 then
MessageBox "Some text goes here"
End if
---
In this case CustomerData=Table1 in my explanations
Can someone please explain what is the right way to reference a different table then the one the form is based on?
Thanks in advance and kind regards,
Lucas