A
Amanda
I used Albert Kallal's Multi Select example to create a continuous form that
uses checkboxes to select specific records in an animal management database.
(I work at a wildcat sanctuary)
So I incorporated Kallal's code into my form, but I am doing the opposite
operation. In Kallal's program, the record ID is added to a collection every
time the checkbox for a record is clicked, and it is removed from the
collection when the checkbox is unclicked.
I want all the records checked to begin with, and then the user can uncheck
the records. I can change the checkbox so that it initially displays as
checked, but the collection of all the checked values is still empty, so if
you uncheck the box, you get an error- it can't remove a value that isn't
there.
The list of records is created from criteria that are selected from unbound
checkboxes in the header (basically the Search Criteria tutorial from Allen
Browne), so I have a strWhere variable with the criteria that creates the
continuous form part.
How can I populate the colCheckbox collection initially with all the record
ID values?
Kallal's example database is at
http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
Thanks, Amanda
uses checkboxes to select specific records in an animal management database.
(I work at a wildcat sanctuary)
So I incorporated Kallal's code into my form, but I am doing the opposite
operation. In Kallal's program, the record ID is added to a collection every
time the checkbox for a record is clicked, and it is removed from the
collection when the checkbox is unclicked.
I want all the records checked to begin with, and then the user can uncheck
the records. I can change the checkbox so that it initially displays as
checked, but the collection of all the checked values is still empty, so if
you uncheck the box, you get an error- it can't remove a value that isn't
there.
The list of records is created from criteria that are selected from unbound
checkboxes in the header (basically the Search Criteria tutorial from Allen
Browne), so I have a strWhere variable with the criteria that creates the
continuous form part.
How can I populate the colCheckbox collection initially with all the record
ID values?
Kallal's example database is at
http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
Thanks, Amanda