Jump to content
Sign in to follow this  
ggh

need calculation that words with related records

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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