Looks like good code to me.
I'll ask again though, does the database compile properly? In any code window go to the debug menu and select the top item.
If so, you've got to start stripping the code down. Change the SQL statement to a simple one-liner. Shouldn't help, but you never know.
If that doesn't do it I'd create a blank form, and copy and paste all the controls onto it, then the code, and then you'll probably need to add some On Event links again as well. Sometimes, annoyingly, that is all you need to do.
Try those, in that order.
I'll ask again though, does the database compile properly? In any code window go to the debug menu and select the top item.
If so, you've got to start stripping the code down. Change the SQL statement to a simple one-liner. Shouldn't help, but you never know.
If that doesn't do it I'd create a blank form, and copy and paste all the controls onto it, then the code, and then you'll probably need to add some On Event links again as well. Sometimes, annoyingly, that is all you need to do.
Try those, in that order.