G
Guest
I am trying to build a lookup RecordSourceType function that will return
varying results depending upon the value in another field in the record that
is "current" at the time when the lookup function is executed. I have gotten
this far (simplified code placed within the lookup function):
Dim S As Object
Set S = CodeContextObject ' "S" is table containing combo boxto be filled
debug.print s!FieldName ' or any other property of S
This returns the data value in <FieldName> of the first record in table "S".
I want to be able to fetch the value of <FieldName> in the record that the
user is currently working.
I've done a lot of research, inlcuding here on the MS site, without finding
a clue.
I'm sure that it must be possible and probably simple, but ... ??? NOTE
that the function will be called from a table. not from a form, if that makes
a difference.
Thanks,
Leonard
varying results depending upon the value in another field in the record that
is "current" at the time when the lookup function is executed. I have gotten
this far (simplified code placed within the lookup function):
Dim S As Object
Set S = CodeContextObject ' "S" is table containing combo boxto be filled
debug.print s!FieldName ' or any other property of S
This returns the data value in <FieldName> of the first record in table "S".
I want to be able to fetch the value of <FieldName> in the record that the
user is currently working.
I've done a lot of research, inlcuding here on the MS site, without finding
a clue.
I'm sure that it must be possible and probably simple, but ... ??? NOTE
that the function will be called from a table. not from a form, if that makes
a difference.
Thanks,
Leonard