Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If (DLookup("values", "yourTable", "criteria") = "certainCondition") Then
DoCmd.OpenQuery "UpdateQuery"
End If
Dim SQLFollowUp As String
Dim SQLNoCommunication as String
SQLFollowUp = "UPDATE tblCustomers INNER JOIN tblBid ON tblCustomers.CustomerID = tblBid.CustomerID " & _
"Set tblCustomers.CustomerType = 'Follow-up' " & _
"WHERE tblBid.BidDate <= Date()-30 and tblCustomers.CustomerType = 'Bid/Estimate'"
SQLNoCommunication = "UPDATE tblCustomers INNER JOIN tblBid ON tblCustomers.CustomerID = tblBid.CustomerID " & _
"Set tblCustomers.CustomerType = 'No Communication' " & _
"WHERE tblBid.BidDate <= Date()-30 and tblCustomers.CustomerType = 'Follow-up'"
DoCmd.RunSQL SQLFollowUp
DoCmd.RunSQL SQLNoCommunication