In theory this works:
Public Function scanresults()
Dim scandata As String
If Forms!frmMain.Form.chkFan.Value < 0 Then
scandata = "SELECT Scans.Scanned, " & _
"Scans.ID, Scans.Blade, Scans.Engine, " & _
"Scans.Part, Scans.Hours, Scans.Cycles, " & _...