Jump to content
Sign in to follow this  
Jarvis

Match fields based upon calculations

Recommended Posts

Is there a way to establish a relationship based upon a calculation?

I would like the criteria for a "match" to be if a quantity field is greater than (1).

If, for example, the quantity of drawers in a cabinet is greater than zero the match field criteria would validate and a portal would display.

In this example the quantity of drawers could be 1,2, 3 or 4.

Is this possible?

Jarvis

Share this post


Link to post
Share on other sites

I'm unsure of your structure but yes. Create a calculation (cDrawers) in your main table, number = 1. Create a relationship from this main table to your child table as:

Main::cDrawers :less: Child::DrawerNumber

You first say quantity greater than one and later indicate 1, 2, 3 and 4 should show. Adjust that calc as needed. If this is filtering an existing relationship, you can do so as well as

Main::ProjectID = Child::ProjectID

AND

cDrawers :less: Child::DrawerNumber

If this doesn't meet your need, we'll need a bit more information as to your existing structure.

UPDATE: If your drawer quantity is an aggregate function then NO, it can't be used as the child side of the relationship. Is the drawer number a standard number?

LaRetta :wink2:

Edited by Guest

Share this post


Link to post
Share on other sites

Thanks to both of you.

This looks just like what I am looking for.

Jarvis

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  

  • Who Viewed the Topic

    1 member has viewed this topic:
    dataclip 
×
×
  • Create New...

Important Information

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