G
Guest
I have created a database that has several tables with different sets of
data. I am trying to create a form that allows me to check specific rows in
a given table. The tables all have data organized by day. For each day
there are several records. I created a combobox that has all of the table
names in it. What I would like to let the user do is select a table from the
first combobox, then have the second combobox fill in with all the distinct
days from that table to allow the user to select the day they are interested
in. When they have done that, the appropriate records would be displayed in
a set of fields.
The easiest way I could think of to do it was to have the row source for the
second combobox fill in based on a query with the selected value in the first
combobox. So the SQL would look something like:
Select distinct(Days) from forms.myForm.cboCombo1.value
When I type this into the row source of the prperties box for combobox2, I
get something like "Can't find database at C:\Documents and Settings\My
Document\forms.myForm.cboCombo1.value.mdb"
I realize I am doing something fundamentally wrong. Any ideas?
data. I am trying to create a form that allows me to check specific rows in
a given table. The tables all have data organized by day. For each day
there are several records. I created a combobox that has all of the table
names in it. What I would like to let the user do is select a table from the
first combobox, then have the second combobox fill in with all the distinct
days from that table to allow the user to select the day they are interested
in. When they have done that, the appropriate records would be displayed in
a set of fields.
The easiest way I could think of to do it was to have the row source for the
second combobox fill in based on a query with the selected value in the first
combobox. So the SQL would look something like:
Select distinct(Days) from forms.myForm.cboCombo1.value
When I type this into the row source of the prperties box for combobox2, I
get something like "Can't find database at C:\Documents and Settings\My
Document\forms.myForm.cboCombo1.value.mdb"
I realize I am doing something fundamentally wrong. Any ideas?