I have 2 tables...A lesson table which has a grade number in it and a scales table which lists all the available scales. I have a form which has a filled in field for grade and a field with a drop down list for the scales. I can get the scales to list, but i want to list only the ones for each grade. I can filter them, but can't figure our how to get the filter to work based on the grade entry.
I hope this makes sense - I'm a long time and repeated beginner with databases (previously did some stuff in Access but was never a power user!)
Thanks for any help you may have for what is probably a very basic question.
Bryonie
At the moment I fear you cannot achieve what you would like. Although the Lookup Value or SLG connection allows you to specify a List Query you cannot set up a query that dynamically specifies the required grade. The query can make use of Group Variable to specify the grade, but there is no way of assigning its value at the time it is needed - that is when the user clicks on the scales field.
In the next release (currently in beta testing) this problem will be solved. A new "On Focus" feature will allow you to assign the variable value. I'm not sure when Chris plans to release this new version to the world, but it must be getting close.
Mike
Alternately, Your equation could yield a key that helps you get your desired value from your table.
Doug
I've attached the relevent database. The form you need is called 'Lessons' and the remote table for the lookup is called 'Scales'. I want to put a grade number in the grade box and have a list of applicable scales drop down. If I could have the grade filed in previously and the scale drop down field simply react to that it would be even better.
I tried to delete the original screen add size but it wouldn't delete when I pressed the red x and it keeps defaulting to it... sorry.
Bryonie
We can ignore form Front Page, and in form Lessons we need concern ourselves only with grade and scales related fields - everything else is not relevant to the problem we have been asked to solve.
Bryonie,
I think there are two approaches, both being attempted (erroneously or incompletely) in form Lessons.
In both cases the Grade field must be an Entry Field, not as shown in Lessons a Remote Field) in which the user specifies the grade. It cannot be a Remote Field as the user must specify the value - it is not simply read from a Remote Form based on a form entry connection specified elsewhere. Grade can be connected by Lookup Value to the corresponding field in the Scales form to give the user a list of allowable Grade values.
Also in both approaches the Scale field must be an Entry Field as there is potentially more than one Scale value for a particular Grade, so the required Scale value cannot be simply read as a Remote Field in the Scales form.
Approach 1, not fully available until the current beta release goes live, is to use Lookup Value for Scales too, but at the moment you will see a list of all Scales values, not just those applicable to the Grade value.
Approach 2 is to use a Remote Table view of Scales with entries matching the Grade value and specify a Custom Menu such that addition of entries is not allowed and clicking on an entry does not dusplay the Scales entry but instead puts the Scales value from the selected Scales entry to the Scales field in the Lessons form.
I'd try to post you an example, but I've lost access to the released version of Sailforms at the moment and something created on the beta would not be compatible with your system.
Mike
Please forget my earlier post. I had different definitions for Scale and Grade than I think you are using.
What are each?
A scale a musical scale, right?
Is a grade a level of musical experience? If so, is it an attribute of each student?
You are welcome to ignore me if the other guys have it covered. I'm always amazed at how well Mike and Tim get it when I have to ask 30 questions.
Doug