I would like to know if there is a way to create filtered lookups
in such a way that when you select country in a drop down the countries states are available in a second drop down
To be noted that I already have a database of city and countries
I would like to know if there is a way to create filtered lookups
in such a way that when you select country in a drop down the countries states are available in a second drop down
To be noted that I already have a database of city and countries
Yes Sweety you can.
You need two lookup rules. The first Lookup will populate the Countries into the County Field (either a Drop Down or Single Line field if you prefer Type ahead to Drop Drop.
In The Lookup area, create a Lookup with No When line, just populate the Country Data into the field using the Fill Command: Fill Country field from Country line of DB.
For the Next lookup, create a regular lookup for the States, When Country = Country, Fill States with States. The States Field would be a Drop Down
Thanks Steve, I never noticed I could delete the "When" part of a lookup.
You are welcome Eric, in case you haven't tried this with the latest versions of Forms, if you use the Fill Command to populate a single line field with a lookup from a DB, such as Customer Name, that Field becomes a Type Ahead Style Lookup field. Meaning that as you Type the name into the field it will compare it against the data from the lookup and provide you a drop down of matches. The field is still Free Key meaning if nothing Matches you can just enter the value you want. I find this very useful when looking up Client Names for example and there would be too many Steve's to have them in a traditional Drop down field.
I didn't know that either. Thank you.
Then the table to which I am connecting should be like below?
Yes, that is correct.