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 45081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:45:11+00:00 2026-05-10T15:45:11+00:00

I am using MS Access 2003. I want to run a lot of insert

  • 0

I am using MS Access 2003. I want to run a lot of insert SQL statements in what is called ‘Query’ in MS Access. Is there any easy(or indeed any way) to do it?

  • 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. 2026-05-10T15:45:11+00:00Added an answer on May 10, 2026 at 3:45 pm

    yes and no.

    You can’t do:

    insert into foo (c1, c2, c3) values ('v1a', 'v2a', 'v3a'),        ('v1b', 'v2b', 'v3b'),        ('v1c', 'v2c', 'v3c') 

    but you can do

    insert into foo (c1, c2, c3)     select (v1, v2, v3) from bar 

    What does that get you if you don’t already have the data in a table? Well, you could craft a Select statement composed of a lot of unions of Selects with hard coded results.

    INSERT INTO foo (f1, f2, f3)     SELECT *     FROM (select top 1 'b1a' AS f1, 'b2a' AS f2, 'b3a' AS f3 from onerow     union all     select top 1 'b1b' AS f1, 'b2b' AS f2, 'b3b' AS f3 from onerow     union all      select top 1 'b1c' AS f1, 'b2c' AS f2, 'b3c' AS f3 from onerow) 

    Note: I also have to include a some form of a dummy table (e.g., onerow) to fool access into allowing the union (it must have at least one row in it), and you need the ‘top 1’ to ensure you don’t get repeats for a table with more than one row

    But then again, it would probably be easier just to do three separate insert statements, especially if you are already building things up in a loop (unless of course the cost of doing the inserts is greater than the cost of your time to code it).

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

Sidebar

Related Questions

Using Access 2003 I want to get a table value from the two databases
Using VB 6 and Access 2003 I want to copy a table from one
I'm using Access 2003 and doing a make table query. The idea is, I
Using MS Access 2003 My query. select a.personid, a.cardeventdate as newday, a.intime as intime,
I am using Redemption to work with outlook 2003. I want to access folder
Using Access 2003 Two Table, Tmp_cardevent1, tmp_cardevent3 Query SELECT AllPossibleCardEvents.PersonId, AllPossibleCardEvents.CardEventDate, Actual.Intime FROM ((SELECT
I have an Access 2003 database using MS-JET linked tables (that is, there are
I'm using MS-Access 2003 with the query creator. I select everything from one table
Using Access 2003 In my table column, some of the fields are null, some
Using Access 2003 Database Table1 Intime Outtime WorkTime OverTime 08:00:00 19:00:00 09:00:00 02:00:00 09:00:00

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.