Here is the code I am using
<%
set rsNSN_Unit_Price=server.createobject("adodb.recordset")
rsNSN_Unit_Price.open "select Sum(NSN_Unit_Price) As aTotal FROM [Desktops_PC], [Laptops_LT] where NSN_Unit_Price+'" & rs("NSN_Unit_Price") & "'",myDsn ,3,3
AllequipCost = rsNSN_Unit_Price("aTotal")
rsNSN_Unit_Price.Close
set rsNSN_Unit_Price = nothing
strAllTotalEquip = AllequipCost
%>
I thought I was on the right track because here is the error I get,
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The specified field 'NSN_Unit_Price' could refer to more than one table listed in the FROM clause of your SQL statement.
Intrepidone
Edited by - Intrepidone on 25 May 2002 08:42:12