Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8223585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:45:23+00:00 2026-06-07T14:45:23+00:00

I have a query in access like this : insert into table1 select *

  • 0

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 %>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:45:24+00:00Added an answer on June 7, 2026 at 2:45 pm

    Something like:

    Set objConn=Server.CreateObject("ADODB.Connection")
    
    objConn.Open  "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & dbfile & ";"
    
    Set cmd = Server.CreateObject("ADODB.Command")
    
    cmd.ActiveConnection = objConn
    cmd.CommandType = 4 ''adCmdStoredProc
    cmd.CommandText = "appendquery" ''stored query
    cmd.Execute recs
    
    Response.Write recs & " updated"
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have sql query like this: select a.x, a.y, sum(a.foo) as foo_sum from a
I have a query like this: SELECT t1.id, (SELECT COUNT(t2.id) FROM t2 WHERE t2.id
I have the following Access query: SELECT [city] FROM [patient] WHERE REPLACE([patient].[city],' ',' ')
In my SQL query in Access 2000, I have a field containing numbers like:
I have a query being created using OLEDB from access and need to get
In MS Access Database Insert query to insert the character------> N'tetarnyl I have an
I have a problem running an insert query via C# OleDbCommand to an Access
I have a query that produces a result like this: The data is sorted
I have an Access database that looks something like this: ID | TestDate |
I have a query in Access 2007. It's worked fine for months, but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.