So I did a complete reinstall of 365, and as I said, it worked for the first time. I could see the query, but the next time I tried, it crashed. I looked in the Event Viewer, and this is what was found.
Faulting application name: MSACCESS.EXE, version: 16.0.18324.20168, time stamp: 0x677829a1...