Henley12
Troy University Fan
- Local time
- Today, 11:59
- Joined
- Oct 10, 2007
- Messages
- 222
I have a form with selection to create a report. Everything works fine except the sorting part. I have a series of 8 combo boxes to choose the sorting order of the report. The users will probably never use all eight, but I gave them the option. Anyway, as you open the first box and choose a sort field, I have the second box selecting the sort fields minus what is in the first box, and so on down the line. The first time through, this works perfectly. The problem comes when I clear the selections and make new ones. Once I choose the first field, then move onto the second box, the field chosen in the first one remains in the list, but some other choice is gone. It absolutely baffles my mind. To test this, create a table with 8 entries. Create a form with 8 combo boxes and do a SELECT fieldname FROM tablename on the first box, then on subsequent boxes, add a WHERE fieldname <> box1, and so on until on the 8th box, you would have seven WHERE clauses. That part should work fine. Create a button to clear all entries, then begin choosing them again. This may be unique to Access 2007, but hopefully some of you will get the same problem I am and see what I am doing wrong. Sorry for the lengthy post.