M
Maverick
This one has really got me going crazy. I can get it to work in one database,
but can't get it to work in another (the concept that is). I have a table
that stores employee names (tblStaff) and a table that stores events
(tblEvents) they go to. I have a combobox whose rowsource grabs the employee
names from the tblStaff via a query which concatenates the fields FirstName
and LastName and filters by the field Active. The idea is to have the
combobox only display the names of active employees as part of its list for
selection.
I can get the combobox list limited to only active staff, but when the
employee becomes inactive they no longer show up on the form...even though
the underlying record still has the information. In addition, if I change the
properties of the combobox to display the ID field (which is the Primary
Key), it does this with no problem.
For example, Column 1 has the ID and its value is 5; Column 2 has StaffName
and its value is Fred Flintstone. Column 1 is the BoundColumn. I have the
column count as 2 and the widths of the columns are 0";1.25". With this
setup, nothing appears in the combobox and if I create a textbox and have the
value of this textbox equal to Column(1) so that it refers to the second
column, it returns no value either. If I switch things around and have
0.25";0" as the column widths, then the value 5 is displayed in the combobox.
I hope I described my issue well enough to at least get the idea out there.
This happend in both Access 2003 and 2007, so it's not limited to one
version. The oddest part of it all is that I have another database that I do
the same thing with but of course have a different table for the data (both
have tblStaff of course).
Please help as I am at my wits end. Thank you so much.
--
HTH
Don''''t forget to rate the post if it was helpful!
Please reply to newsgroup only, so that others may benefit as well.
but can't get it to work in another (the concept that is). I have a table
that stores employee names (tblStaff) and a table that stores events
(tblEvents) they go to. I have a combobox whose rowsource grabs the employee
names from the tblStaff via a query which concatenates the fields FirstName
and LastName and filters by the field Active. The idea is to have the
combobox only display the names of active employees as part of its list for
selection.
I can get the combobox list limited to only active staff, but when the
employee becomes inactive they no longer show up on the form...even though
the underlying record still has the information. In addition, if I change the
properties of the combobox to display the ID field (which is the Primary
Key), it does this with no problem.
For example, Column 1 has the ID and its value is 5; Column 2 has StaffName
and its value is Fred Flintstone. Column 1 is the BoundColumn. I have the
column count as 2 and the widths of the columns are 0";1.25". With this
setup, nothing appears in the combobox and if I create a textbox and have the
value of this textbox equal to Column(1) so that it refers to the second
column, it returns no value either. If I switch things around and have
0.25";0" as the column widths, then the value 5 is displayed in the combobox.
I hope I described my issue well enough to at least get the idea out there.
This happend in both Access 2003 and 2007, so it's not limited to one
version. The oddest part of it all is that I have another database that I do
the same thing with but of course have a different table for the data (both
have tblStaff of course).
Please help as I am at my wits end. Thank you so much.

--
HTH
Don''''t forget to rate the post if it was helpful!
Please reply to newsgroup only, so that others may benefit as well.