Jump to content

Relationship help needed...Before I go mad!


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

Recommended Posts

Posted

I'm trying to set-up a mileages db and I figured that this might be best accomplished with a Portal...

The objective is to automate mileage entry in a trip-itinerary

Table 1 - Mileages

Field 1 - city1 [text] // from

Field 2 - city2 [text] // to

Field 3 - miles [number]

Field 3 - city_city [calc text]

(city1 & " to " & city2 & " " miles & " miles")

Table 2 - Itinerary

Field 1 - city [text] //insert city for match

Portal - city_city

The relationship is made between Field 1 = Field 1

This works...But I can't get to the next step...

By way of example...

San Francisco - LA

San Francisco - Seattle

LA - Seattle

In this example the portal shows both SF mileages but if you look for a match based on LA you only get LA-Seattle and if you search for Seattle nothing appears.

So the next relationship step ought to be Field 1 = Field 1 and Field 1 = Field 2

I've spent hours toying with this and I'm now officially snow-blind!

Offers of directional (!) guidance would be much appreciated.

Tim

Posted (edited)

Try creating a text calculation in the Mileages table =

City1 & ¶ & City2

and match the city in the Itinerary tabe to this field.

Edited by Guest
Misunderstood the problem
Posted

Thank you!

Such a simple solution - I would never have thought of that, which is worrying!

I've now expanded this enormously and having spent all day on it, I can guarantee that the next problem is fast approaching!

Tim

This topic is 7049 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.