Hi
I have a Puchase Order form with a subform. I can enter as many lines as I want on the subform.
What I need to do is the following:
When exiting the PO form, I need a routine to check the 3 lines (or whatever many lines that have been entered...) to see if a certain field matches a certain criteria.
For example, on PO #1000, with lines 1,2,3
check field [linetype] to see if it is "LCL" or "FCL".
If all lines are "LCL" then display message#1 otherwise display message#2
I know how to query the lines (via SQL) however I am looking for a faster/easier way which doesn´t require to run an SQL, but to use the info which is already on the screen.
Your input is appreciated.
I have a Puchase Order form with a subform. I can enter as many lines as I want on the subform.
What I need to do is the following:
When exiting the PO form, I need a routine to check the 3 lines (or whatever many lines that have been entered...) to see if a certain field matches a certain criteria.
For example, on PO #1000, with lines 1,2,3
check field [linetype] to see if it is "LCL" or "FCL".
If all lines are "LCL" then display message#1 otherwise display message#2
I know how to query the lines (via SQL) however I am looking for a faster/easier way which doesn´t require to run an SQL, but to use the info which is already on the screen.
Your input is appreciated.