ansentry
Access amateur
- Local time
- Tomorrow, 08:32
- Joined
- Jun 1, 2003
- Messages
- 995
I have a continuous form that has two fields’ txtCusNameAndAddress and txtIncludeInMerge.
txtIncludeInMerge is a tick box default -1
The user can “un-tick” the tick box next to a customers name and when the “Continue” button is clicked, the record is saved and the “un-ticked” customers are not included in the merge.
Now the problem; Lets say there are 10 Customers listed on the form and the user un-ticks ALL the tick boxes, clicks Continue and because only customers with a -1 are included in the merge, there are not records to merge and I get an error in my code that creates the merge.
What I would like is a code sample that will check the number of ticks, if ALL un-ticked then I will use a msgbox “All records de-selected” etc, Else if at least 1 is ticked proceed as normal.
Any help will be appreciated.
Regards,
txtIncludeInMerge is a tick box default -1
The user can “un-tick” the tick box next to a customers name and when the “Continue” button is clicked, the record is saved and the “un-ticked” customers are not included in the merge.
Now the problem; Lets say there are 10 Customers listed on the form and the user un-ticks ALL the tick boxes, clicks Continue and because only customers with a -1 are included in the merge, there are not records to merge and I get an error in my code that creates the merge.
What I would like is a code sample that will check the number of ticks, if ALL un-ticked then I will use a msgbox “All records de-selected” etc, Else if at least 1 is ticked proceed as normal.
Any help will be appreciated.
Regards,