Hello all,
I need help setting up and adding to an array. I have never done this in access before though I have worked with arrays a *little* bit and understand their basic nature.
Okay, so on my form I have a combo box for "Staff". But I need to be able to have multiple staff entered into the database (the combo box itself is fed from a separate table), and preferably into one field.
So I was thinking that there could be a button "Add Staff member". So the user could choose the first Staff member from the dropdown, then click "Add Staff member" which would clear the combo box so they could choose another etc. Every time they chose another staff member it would get appended to the array.
Could something like this work well? Is there a better or easier way to do this WITHOUT having multiple fields for multiple staff? I'm trying to avoid empty cells here because one day the user may have 3 staff members and the next day 1 or 5. So I don't want to design the master table to have multiple staff fields. Rather I thought it would be better to have one field that can hold multiple values.
Thanks for any help!
I need help setting up and adding to an array. I have never done this in access before though I have worked with arrays a *little* bit and understand their basic nature.
Okay, so on my form I have a combo box for "Staff". But I need to be able to have multiple staff entered into the database (the combo box itself is fed from a separate table), and preferably into one field.
So I was thinking that there could be a button "Add Staff member". So the user could choose the first Staff member from the dropdown, then click "Add Staff member" which would clear the combo box so they could choose another etc. Every time they chose another staff member it would get appended to the array.
Could something like this work well? Is there a better or easier way to do this WITHOUT having multiple fields for multiple staff? I'm trying to avoid empty cells here because one day the user may have 3 staff members and the next day 1 or 5. So I don't want to design the master table to have multiple staff fields. Rather I thought it would be better to have one field that can hold multiple values.
Thanks for any help!
Comment