G
Guest
I am trying to clean up our application and have started a new mdb. I copied
and pasted this code into the new mdb. When I run this it crases and shows
that the rst = "nothing".
I have, I believe, linked and imported all the necessary forms, queries, and
tables that apply to this code
Set rst = CurrentDb.OpenRecordset("SELECT CompanyId from tblAlerts WHERE
ShipDate = #" & Date & "#")
If rst.RecordCount = 0 Then
CurrentDb.Execute "qryAddStdShipmentsForToday"
End If
rst.close
Set rst = Nothing
'GetNotes
Me.frmAlertsSub.Form!Airbill.SetFocus
Any ideas on why the rst = "nothing"
Would it be better to hard code the rst = tblAlerts ? If so please help
with syntax. I tried doing that am not apparently doing it correctly.
Thanks in advance for any help
and pasted this code into the new mdb. When I run this it crases and shows
that the rst = "nothing".
I have, I believe, linked and imported all the necessary forms, queries, and
tables that apply to this code
Set rst = CurrentDb.OpenRecordset("SELECT CompanyId from tblAlerts WHERE
ShipDate = #" & Date & "#")
If rst.RecordCount = 0 Then
CurrentDb.Execute "qryAddStdShipmentsForToday"
End If
rst.close
Set rst = Nothing
'GetNotes
Me.frmAlertsSub.Form!Airbill.SetFocus
Any ideas on why the rst = "nothing"
Would it be better to hard code the rst = tblAlerts ? If so please help
with syntax. I tried doing that am not apparently doing it correctly.
Thanks in advance for any help