I forgot to import the query tied to the form that the double click event was opening so it couldn't link the criteria. I guess I need something in the click event to state that there isn't a record, but in this case there would always be a record so as long as I don't forget to import the query I should be fine.
So ultimately if you get that error make sure the form that you are trying to open has data attached to it.