Here's my issue. I wrote VBA code that does a couple calculations for me. It works fine (I should mention this is in a form). The form is based off a query. The query asks for the user to input a date. If the date returns any results, everything works fine. However, if the date returns no records, I get a VBA error opening the form because I reference something that has no value. How can I get it to just popup an alert that no records were found then stop before opening the form? Any suggestions are appreciated. I can elaborate more if necessary. Thanks.