Hi
I have a table for logging errors, in this table I have two fields, TeamCaused1, TeamCaused2 and I have the individuals name.
I need to be able to pull all the errors that the user has logged as well all those caused by the team the individual belongs to. For example: All breaches logged by Carl Law who belongs to the Support team. I also need to pull in all the errors assigned to that team.
Once I have this information it needs to populate a listbox.
I initially thought this should be a recordset however I am unsure how you would write the SQL to populate it to then pull into the listbox.
Only other thing I thought of was a simple select statement to get the errors logged by the individual, another that pulls the ones caused by the same team and add these to an array/collection and then populate the listbox???
However I have no idea how to do this.
It would be great if someone could point me in the right direction with maybe an example?
Thanks
Carl
I have a table for logging errors, in this table I have two fields, TeamCaused1, TeamCaused2 and I have the individuals name.
I need to be able to pull all the errors that the user has logged as well all those caused by the team the individual belongs to. For example: All breaches logged by Carl Law who belongs to the Support team. I also need to pull in all the errors assigned to that team.
Once I have this information it needs to populate a listbox.
I initially thought this should be a recordset however I am unsure how you would write the SQL to populate it to then pull into the listbox.
Only other thing I thought of was a simple select statement to get the errors logged by the individual, another that pulls the ones caused by the same team and add these to an array/collection and then populate the listbox???
However I have no idea how to do this.
It would be great if someone could point me in the right direction with maybe an example?
Thanks
Carl