This is the ASP version that works:
<%
Dim Conn, RS
Set Conn = Server.CreateObject("ADODB.Connection"

conn.open "pp2"
Dim strSQL
strSQL = "DELETE * FROM Invoices;"
Set RS = Conn.Execute(strSQL)
strSQL = "INSERT INTO Invoices SELECT [XLink].* "
strSQL = strSql&"FROM [XLink] "
strSQL = strSql&"WHERE [XLink].[doc type]='I';"
Set RS = Conn.Execute(strSQL)
strSQL = "DELETE * FROM Stox;"
Set RS = Conn.Execute(strSQL)
strSQL = "INSERT INTO Stox SELECT [Invoices].* "
strSQL = strSql&"FROM [Invoices] "
strSQL = strSql&"WHERE [Invoices].[cust number]=222;"
Set RS = Conn.Execute(strSQL)
set rs = nothing
conn.Close
set conn = nothing
%>
Now i would like to do the same with only calling the saved queries in Access, like you state above in your reply, therefore I assume the following would be the code:
<%
Dim Conn, RS
Set Conn = Server.CreateObject("ADODB.Connection"

conn.open "pp2"
Dim strSQL
strSQL = "DelInvoices" 'name of query in Access
Set RS = Conn.Execute(strSQL)
strSQL = "UpdInvoices" 'name of query in Access
Set RS = Conn.Execute(strSQL)
strSQL = "DelStox" 'name of query in Access
Set RS = Conn.Execute(strSQL)
strSQL = "UpdStox" 'name of query in Access
Set RS = Conn.Execute(strSQL)
set rs = nothing
conn.Close
set conn = nothing
%>
This second code did not work, instead i got the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
Help!!! What am i doing wrong?