Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Directly run insert statements

Posted on 2013-11-14
2
Medium Priority
?
391 Views
Last Modified: 2013-11-15
Hi,

In Access 2013, how to directly execute insert/delete statements against the tables?
0
Comment
Question by:HuaMinChen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
sarabande earned 460 total points
ID: 39650496
in access 2010 you would create a new query, skip the selection of a table. then a button 'SQL' would appear in the ribbon bar which would give a command window where you can type sql statements.

Sara
0
 
LVL 58
ID: 39650903
You can also execute SQL statements in code directly by doing:

CurrentDB().Execute <SQL Statement>, dbFailOnError

There is also a series of articles starting with this one:

Fundamental Microsoft Jet SQL for Access 2000
http://msdn.microsoft.com/en-us/library/office/aa140011(v=office.10).aspx

That walk you through all the SQL that can be used with Access and JET.

Links to part 2 and 3 of the series is at the bottom of the page.

Jim.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question