G
Geoff
Hi everyone,
I'm trying to populate a combo box in my form automatically based on
whatever data is currently displayed in my subform. I've written some code
that will loop through all the subform records and store the field in a
variable, then I've been wondering what's best to do with that data. It's a
date field so that gave me some problems with the variable but I won't get
into details of that.
I've been researching this and the general view is that it's best to update
a table with the data, then have my combo based on that. So I've been trying
to find code that will update a table for me and although I have found some,
it doesn't make a lot of sense to me and seems sooo complex considering I
only want to add a few records to a table.
Anyway, I had a thought that maybe I could use an Append Query instead? So
after all that waffle above, my main question is this: Is there a way to
have an append query automatically update a table with one field taken from
only the records currently displayed in my subform?
Thanks loads,
Geoff.
I'm trying to populate a combo box in my form automatically based on
whatever data is currently displayed in my subform. I've written some code
that will loop through all the subform records and store the field in a
variable, then I've been wondering what's best to do with that data. It's a
date field so that gave me some problems with the variable but I won't get
into details of that.
I've been researching this and the general view is that it's best to update
a table with the data, then have my combo based on that. So I've been trying
to find code that will update a table for me and although I have found some,
it doesn't make a lot of sense to me and seems sooo complex considering I
only want to add a few records to a table.
Anyway, I had a thought that maybe I could use an Append Query instead? So
after all that waffle above, my main question is this: Is there a way to
have an append query automatically update a table with one field taken from
only the records currently displayed in my subform?
Thanks loads,
Geoff.