Hi,
on a project i have a form with a field that is a databasejoin.
The form get the client code from a furniture table and put in the field the client code.
I have a problem on submit because if i have the code (the databasejoin return a number) all works well.
But if the client is not in the furniture i get an sql error when submit.
I'd like to know if i can do one of this two things:
1) If the databasejoin is empty use somenting like "not already a client" option
2) Prevent the form appearing if you are not a client: YOU ARE A CLIENT -> form | YOU ARE NOT -> a message
Thanks you
on a project i have a form with a field that is a databasejoin.
The form get the client code from a furniture table and put in the field the client code.
I have a problem on submit because if i have the code (the databasejoin return a number) all works well.
But if the client is not in the furniture i get an sql error when submit.
I'd like to know if i can do one of this two things:
1) If the databasejoin is empty use somenting like "not already a client" option
2) Prevent the form appearing if you are not a client: YOU ARE A CLIENT -> form | YOU ARE NOT -> a message
Thanks you