I have a query in access like this :
insert into table1
select * from table2
I want user to update the above query from asp web page. Table2 is a linked excel table in access where users update daily in excel.
At the end of the day, I want them to update it using the asp web page into main access database into table2. I tried the code below but i got error ` An action query cannot be used as a row source’
<% set conn = create.object ("ADODB.connection")
conn open "odbcconnectionname"
sql = "appendquery"
set rs = create.recordset ("ADODB.recordset")
conn.rs sql, conn %>
Something like:
The error you are getting means more or less what it says, you must execute an action query, you cannot use it for a recordset.