Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6001 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

My database has a student order table, which is related to the main student table. I'm trying to "idiot proof" the ordering process. I've got scripts that check the relationship to see that aren't identical orders. I'm trying to come up with a script that will indicate if two orders that shouldn't be placed together are attempted. As an example, if a "pasta dinner with salad" is ordered, the user shouldn't be able to order "salad".

In the order table, I have a field that indicates the product type (Dominos, SubWay etc), an additional field for the item description. I think I need a way to query all related records item fields and compare it to the order being placed. Suggestions?

Posted

Hi Tracy!

Well, it would be easier to have a Product Type table with an Items table so items could be selected from value list. Then the relational comparison would be easier. But here's a down-and-dirty idea (file attached). It's not perfect because, if you have two meals with the word 'with' in them, it will say they may be dupliates.

I didn't set this up to be ran from the Students table. But I think it will be clear how it functions.

LaRetta

Students.zip

This topic is 6001 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.