J
jody
Is it possible to create a formula in the criteria row of a
field (LocationID) in the design grid that will return the
proper criterion to that field?
I'd like to base the formula on the presence of certain
data in the following table, but have no idea how to
structure it:
tblLogChange
SubscriberID Date (dd/mm/yy) TableName RecordID
1 01/01/03 "Locn" 1
1 01/01/03 "Locn" 2
1 02/01/03 "Locn" 3
2 01/01/03 "Subs" 2
If, for a specific date, the field TableName contains the
string "Locn", then the criterion returned should be the
corresponding RecordID number(s) for every occurence of
"Locn" on that date. Otherwise, the criteria should be 0
which will result in a dynaset with no data.
In the example above the criterion returned to the
LocationID field for the date 01/01/03 should be literally:
1 or 2
This criterion will produce a dynaset of two records, one
for LocationID 1, and one for LocationID 2.
The user will supply the date.
Does anyone know how the formula should be structured?
Thanks,
jody
field (LocationID) in the design grid that will return the
proper criterion to that field?
I'd like to base the formula on the presence of certain
data in the following table, but have no idea how to
structure it:
tblLogChange
SubscriberID Date (dd/mm/yy) TableName RecordID
1 01/01/03 "Locn" 1
1 01/01/03 "Locn" 2
1 02/01/03 "Locn" 3
2 01/01/03 "Subs" 2
If, for a specific date, the field TableName contains the
string "Locn", then the criterion returned should be the
corresponding RecordID number(s) for every occurence of
"Locn" on that date. Otherwise, the criteria should be 0
which will result in a dynaset with no data.
In the example above the criterion returned to the
LocationID field for the date 01/01/03 should be literally:
1 or 2
This criterion will produce a dynaset of two records, one
for LocationID 1, and one for LocationID 2.
The user will supply the date.
Does anyone know how the formula should be structured?
Thanks,
jody