M
MikeB
I was experimenting this afternoon and have accumulated a horde of
questions. Please forgive me for this rather lengthy post.
I'm trying to design a new data entry form for my Chess Club. First I
want to select from the available tournaments, then from the available
matches within that tournament, and then from the games within that
match. I envisage a form, a sub-form and a sub-sub-form. My previous
form was a 3-level nested subform similar to the above, but I had to
scroll through the various tournaments, then the matches and then the
games.
This time I thought I'd try and use a form with drop-down combo-boxes.
I started with a form not bound to a query or table (unbound form?)
then I added a Combo box with a query on the Tournaments table. This
works (more or less) in that it is blank when the form is opened,
whereas I want to perhaps put some text in there to say "Select
Tournament." Also (and I don't know if this is some quirk or not, but
if I click on a vlaue in the drop-down, it doesn't close and display
that value. Is this due to an error? Perhaps something I did further
on caused this, because my recollection is that combo boxes do
normally close again.
So to make a user prompt appear in the combo box, I thought I'd set
the combo box initially with a value and a default value, then when
the user clicks in it, I'd use the "onEnter" event to change the
properties of the combo box to bind it to a query.
The problem is that I find that the help is very very vague on exactly
how to specify the various properties.
Also, when I create the combo-box and set a default value, I could not
consistently make it appear in the combo box.
Let's assume that either I get my "magic" to work, or I abandon it and
simply live with a blank combo box on entry to the form, do I set the
combo box to "remember the value" for the item selected? Is that how I
use that value in the query for the Subform?
Thanks.
I really, really need a pointer to a better tutorial or help on using
combo boxes. Or (yet another) book on Access. Thanks to all.
Which reminds me, I have an access 2007 step-by-step book somewhere,
but I don't think it goes this deep into combo boxes and how to set
their properties from VBA event procedures.
questions. Please forgive me for this rather lengthy post.
I'm trying to design a new data entry form for my Chess Club. First I
want to select from the available tournaments, then from the available
matches within that tournament, and then from the games within that
match. I envisage a form, a sub-form and a sub-sub-form. My previous
form was a 3-level nested subform similar to the above, but I had to
scroll through the various tournaments, then the matches and then the
games.
This time I thought I'd try and use a form with drop-down combo-boxes.
I started with a form not bound to a query or table (unbound form?)
then I added a Combo box with a query on the Tournaments table. This
works (more or less) in that it is blank when the form is opened,
whereas I want to perhaps put some text in there to say "Select
Tournament." Also (and I don't know if this is some quirk or not, but
if I click on a vlaue in the drop-down, it doesn't close and display
that value. Is this due to an error? Perhaps something I did further
on caused this, because my recollection is that combo boxes do
normally close again.
So to make a user prompt appear in the combo box, I thought I'd set
the combo box initially with a value and a default value, then when
the user clicks in it, I'd use the "onEnter" event to change the
properties of the combo box to bind it to a query.
The problem is that I find that the help is very very vague on exactly
how to specify the various properties.
Also, when I create the combo-box and set a default value, I could not
consistently make it appear in the combo box.
Let's assume that either I get my "magic" to work, or I abandon it and
simply live with a blank combo box on entry to the form, do I set the
combo box to "remember the value" for the item selected? Is that how I
use that value in the query for the Subform?
Thanks.
I really, really need a pointer to a better tutorial or help on using
combo boxes. Or (yet another) book on Access. Thanks to all.
Which reminds me, I have an access 2007 step-by-step book somewhere,
but I don't think it goes this deep into combo boxes and how to set
their properties from VBA event procedures.