Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Lookup field without field saving

$
0
0
I am wondering, if there is a solution for the following lookup issue without programming.

I have a main table "marina", assigning a city (FKcity) to the marina. The city is assigned to a country.

Posted Image

Listing the marinas, I join the tables "marina", "city" and "country".

Posted Image

Now comes the problem. When adding or editing a marina, I would like to be able to select the country first, in order to only have the cities of this country to choose for assigning to the marina.
But if I also use the country-field of the original query, PHPrunner says, that it can't save this field. Of course, as this field is not part of the "marina"-table.

This is how I would like to look the form like:
Posted Image

This way, it works fine, but I have no country-field to preselect the cities.
Posted Image

I am aware that having a "FKcountry"-field in the "marina"-table would help. But this would not be nice in terms of normalization. I hope, there is a way to realize this without programming...
Thanks for your help to a newbie in PHPrunner with no PHP programming knowhow (coming from Access-VBA-World).
Oliver

Viewing all articles
Browse latest Browse all 2586

Trending Articles