D
drabbacs
I asked this question in an earlier post but the reply was
less than helpful.
If I want to write a query based on a double click event
on a tabular-textbox contained in a subform contained in a
parent form, how would the WHERE clause be phrased?
To compare, in an earlier version of my database, I had a
form that contained a listbox, which displayed several
lines of data. The user could select a particular line and
doubleclick and this would execute a macro/query which
opened another form and diplayed details concerning the
selected line. That was accomplished using the bound
column property in the listbox and the on_dbl_click event.
The macro/query had a where clause something like...
Where userfield = forms![form_name].[listbox_name]
I want to do the same thing with this textbox in the
subform in the form. How do I write the where clause?
.... A guess I had but turned out to be wrong...
where userfield = forms![parentform_name].[subform_name].
[textbox_name]
The textbox in the subform is a tabular display of
information. That is I don't know how many lines of data
will be displayed ahead of time. In the earlier version
using the listbox, there was garunteed to be a fixed
number of lines of data.
Any help would be appreciated.
Drabbacs
less than helpful.
If I want to write a query based on a double click event
on a tabular-textbox contained in a subform contained in a
parent form, how would the WHERE clause be phrased?
To compare, in an earlier version of my database, I had a
form that contained a listbox, which displayed several
lines of data. The user could select a particular line and
doubleclick and this would execute a macro/query which
opened another form and diplayed details concerning the
selected line. That was accomplished using the bound
column property in the listbox and the on_dbl_click event.
The macro/query had a where clause something like...
Where userfield = forms![form_name].[listbox_name]
I want to do the same thing with this textbox in the
subform in the form. How do I write the where clause?
.... A guess I had but turned out to be wrong...
where userfield = forms![parentform_name].[subform_name].
[textbox_name]
The textbox in the subform is a tabular display of
information. That is I don't know how many lines of data
will be displayed ahead of time. In the earlier version
using the listbox, there was garunteed to be a fixed
number of lines of data.
Any help would be appreciated.
Drabbacs