Hi,
I need to delete records from a table using SQL within VBA such as the following.
My problem is that I have linked tables from two different databases. So rather than using CurrentDB what should I use to specify the database?Code:CurrentDB.Execute "DELETE FROM dbo_LeadNote WHERE CompanyCode = " & Me.CompanyCode