I have a db and i would like to count the number of fields related to that ID. In my onloans table i have the the ID of the person and the serial number of the product and i would like to count the number of serial numbers the person has borrowed against their ID. Once this is done i would like to create checkboxes so the user can check which product they would like to return. Therefore the checkboxes will have to be dynamic and for every ID a different number of checkboxes will be displayed.
I know i have to use an array but i dont know how to print the checkboxes and were to put the code.
code eg
Dim c As Integer
Dim numRecords As Integer
SQL = select * from Onloan where Serial = '" & Serial &"'
set rs = new recordset
rs, SQL etc
numRecords = rs.recordcount
for c = 1 to numRecords
print checkbox
loop
Thanks for your help
Raeda
I know i have to use an array but i dont know how to print the checkboxes and were to put the code.
code eg
Dim c As Integer
Dim numRecords As Integer
SQL = select * from Onloan where Serial = '" & Serial &"'
set rs = new recordset
rs, SQL etc
numRecords = rs.recordcount
for c = 1 to numRecords
print checkbox
loop
Thanks for your help
Raeda