G
Gary Dolliver
Hi all,
I am wanting to set up a check system based on multiple criteria (explained
below) and then depending on the result, will then do A or B. I figure it is
a pretty basic set up of:
If result = A then
A
Elseif result = B then
B
Endif
The problem I am having is creating the code for both the A and B criteria.
Ok, I will be needing to focus on 3 tables, Orders, Creations, and Items.
Orders are composed of Creations, Creations are composed of Items. The Items
table will hold the overall quantity of an Item, and there can be multiple
items for each creation, and then multiple creations to each order.
What I am wanting to do is have some code run when the user selects
"Complete order" that will check to see if a particular order type is used
(info within orders table) and that the overall quantity (looking through all
creations and items) is greater than 4. I created a query that will check
this, but am not sure how to implement it so that the result set will be
checked based on the current order number... help?
I do not have any code written yet, but can post the SQL if needed. Thank
you!
-gary
I am wanting to set up a check system based on multiple criteria (explained
below) and then depending on the result, will then do A or B. I figure it is
a pretty basic set up of:
If result = A then
A
Elseif result = B then
B
Endif
The problem I am having is creating the code for both the A and B criteria.
Ok, I will be needing to focus on 3 tables, Orders, Creations, and Items.
Orders are composed of Creations, Creations are composed of Items. The Items
table will hold the overall quantity of an Item, and there can be multiple
items for each creation, and then multiple creations to each order.
What I am wanting to do is have some code run when the user selects
"Complete order" that will check to see if a particular order type is used
(info within orders table) and that the overall quantity (looking through all
creations and items) is greater than 4. I created a query that will check
this, but am not sure how to implement it so that the result set will be
checked based on the current order number... help?
I do not have any code written yet, but can post the SQL if needed. Thank
you!
-gary