there is nothing defined as a 'group' within a form. it is within reports.
in forms; you would have to add a field to the underlying table and put in a value that identified which group a record is with.....and then modify your code to accommodate this grouping method.



