A
Abay
Hello .. I'm not sure where to post the following. Originally I posted it
in the general access newsgroup but have had no reply .. apologies if this
is also the wrong newsgroup, if it is, some re-direction would be most
welcome .. and the problem is:
I have a tabular form who's source is derived from a query.
There is a yes/no switch which can be ticked to select individual records
which are used to create a new table.
There are two command buttons, one pressed to select all records and the
other is pressed when only some records are selected. When some are
selected and the button pressed, it runs a macro containing 2 queries ..
one to create the table from the selected records by checking the yes/no
switch, the other to clear the yes/no switch (clears the switches on all
records .. or that's the idea) after the new table is created.
The problem is, the last record which is ticked on the form, is not
selected. & doesn't get cleared after the new file is created. When only
one record is selected it works but not for more than one i.e. when four
records are ticked only three are selected. The last record ticked is never
selected.
If I add a record at the end of the form all four ticked records are
selected, but obviously I can't ask people to add a dummy record.
I know a little of Access but am still a newbie ..
There is probably a better way to do this.
Any help would be much appreciated.
Abay
in the general access newsgroup but have had no reply .. apologies if this
is also the wrong newsgroup, if it is, some re-direction would be most
welcome .. and the problem is:
I have a tabular form who's source is derived from a query.
There is a yes/no switch which can be ticked to select individual records
which are used to create a new table.
There are two command buttons, one pressed to select all records and the
other is pressed when only some records are selected. When some are
selected and the button pressed, it runs a macro containing 2 queries ..
one to create the table from the selected records by checking the yes/no
switch, the other to clear the yes/no switch (clears the switches on all
records .. or that's the idea) after the new table is created.
The problem is, the last record which is ticked on the form, is not
selected. & doesn't get cleared after the new file is created. When only
one record is selected it works but not for more than one i.e. when four
records are ticked only three are selected. The last record ticked is never
selected.
If I add a record at the end of the form all four ticked records are
selected, but obviously I can't ask people to add a dummy record.
I know a little of Access but am still a newbie ..
There is probably a better way to do this.
Any help would be much appreciated.
Abay