I'm trying to do a duty roster for 70 workers. They are identified by a three figure number. Their numbers are enterred in various TexBoxes to show their tasks for the day.
In order to check that I haven't missed anyone out, I have the complete list of available workers in a listBox.
I'm trying to get the listBox to only show the workers not tasked. I have built up a query as a RowSource which works fine but I find that when I have more than 64 workers enterred, it produces the following error 'runtime error 2176 : The setting for this property is too long'.
I've tried it manually in a query and there doesn't seem to be a limit for "SELECT ID, worker FROM Workers where WorkerNumber<>textbox1 Or WorkerNumber<>textbox2 OR WorkerNumber<>textbox3 etc etc etc. up to ListBox100
How can I get around this?
In order to check that I haven't missed anyone out, I have the complete list of available workers in a listBox.
I'm trying to get the listBox to only show the workers not tasked. I have built up a query as a RowSource which works fine but I find that when I have more than 64 workers enterred, it produces the following error 'runtime error 2176 : The setting for this property is too long'.
I've tried it manually in a query and there doesn't seem to be a limit for "SELECT ID, worker FROM Workers where WorkerNumber<>textbox1 Or WorkerNumber<>textbox2 OR WorkerNumber<>textbox3 etc etc etc. up to ListBox100
How can I get around this?