how to reference current row in SQL string?
hi, i have a qst while using RowSource.
i have 3 tables:
[1] CITY
col: _value _name
[2] STREET
col: _city _value _name
[3] ADDRESS
cal: city street
the problem ocurred when i designed ADDRESS table:
the RowSource of [city] is "SELECT _name, _value FROM CITY".
and i set the binding-column as 2,
so that _name can be displayed and the real value is _value(integer).
but here comes the trouble: how can i set the RowSource of [street]?
---->>>
the _value of STREET table depends on _city, and _city is _value in CITY table.
eg. _name of STREET is "Wall Street" when (_city,_value) = (1,1),
but "Lincoln Avenue" when (_city,_value) = (2,1)
i want to use "SELECT _name, _value FROM STREET WHERE _city=CurrentRow.city" as RowSource,
but what can replace the "CurrentRow"?
can anybody help me? thanks!
:banghead:
hi, i have a qst while using RowSource.
i have 3 tables:
[1] CITY
col: _value _name
[2] STREET
col: _city _value _name
[3] ADDRESS
cal: city street
the problem ocurred when i designed ADDRESS table:
the RowSource of [city] is "SELECT _name, _value FROM CITY".
and i set the binding-column as 2,
so that _name can be displayed and the real value is _value(integer).
but here comes the trouble: how can i set the RowSource of [street]?
---->>>
the _value of STREET table depends on _city, and _city is _value in CITY table.
eg. _name of STREET is "Wall Street" when (_city,_value) = (1,1),
but "Lincoln Avenue" when (_city,_value) = (2,1)
i want to use "SELECT _name, _value FROM STREET WHERE _city=CurrentRow.city" as RowSource,
but what can replace the "CurrentRow"?
can anybody help me? thanks!
:banghead: