Questions tagged [ms-access]

Microsoft Access, also known as Microsoft Office Access, is an application development and database development tool from Microsoft. It combines the Microsoft Jet/ACE Database Engine with a graphical user interface and software-development tools. Other database engines, such as SQL Server, can also be used as a database server for Access applications.

Microsoft Access, also known as Microsoft Office Access, is an application development and database development tool.

It commonly uses the Jet or ACE database engine, but is not limited to these.

It is a member of the suite of applications, included in the Professional and higher editions or sold separately. The current version is Microsoft Access 2016.
Applications built with Microsoft Access can be distributed to end users with a free run-time version of the application that lets them view databases without needing the full installation of Access.

This tag is version-agnostic. If you have a question about using a specific version, please tag your question appropriately so others know what version you are using. Ex:

and or if your question involves VBA.

Links

Common errors

Reserved Words

One of the most common problems with MS Access SQL is the use of a reserved word in a query or SQL string. It is often suggested that these words are bracketed, [RESERVED WORD], as is required for field (column) names containing spaces or special characters. But rather than trying to figure out what is and is not a reserved word and bracketing only those, using the convention of prefixing all field names with the table name — or better yet, the alias — will prevent this problem from occurring. This will save problems in other cases, not just reserved words. For example:

 SELECT a.id, b.id, b.name 
 FROM tablea a
 INNER JOIN tableb b 

It also makes the SQL compatible with other databases.

Connection Strings

The usual connection string for MS Access *.accdb files, that is, files created in Access 2007 format, is:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;

The ACE connection string is backwards-compatible and will open *.mdb files; however, for *.mdb files, you can also use:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myFolder\myAccess.mdb;

Jet is often installed by default on Windows systems, but ACE is not. ACE is available in both 32-bit and 64-bit.

57313 questions
5
votes
3 answers

Using Access databases in C#?

How would I use a Microsoft Access (.accdb) database in C# (console application, not web asp.net)? From what I've read, I'll need to use ADO.NET, but I'm really at a loss as to how to do this in a C# console application. In PHP with MySQL, I'd be…
MatthewSot
  • 3,516
  • 5
  • 39
  • 58
5
votes
2 answers

Connect to Microsoft Access Database from XCode

I've been tasked with writing a Mac App in xcode 4.3 that can search and display data from a publicly available MS Access Database that's updated regularly. For this reason, I can't just convert the file to a different database platform. I've…
bgolson
  • 3,460
  • 5
  • 24
  • 41
5
votes
4 answers

removing characters from field in MS Access database table

Using MS Access 2010. I have a field in a table that contains windows path names surrounded by quotes, like this "C:\My Documents\Photos\img1.jpg" "C:\My Documents\Photos\products\gizmo.jpg" "C:\My Documents\Photos\img5.jpg" and so on. I need to…
maneesha
  • 685
  • 3
  • 11
  • 19
5
votes
2 answers

Retuning a value for null records on a left outer join in an Access query

I have tried all the formulas for returning a value in this situation and keep getting an error telling me I have the wrong number of arguments. Here is my query: SELECT [ER Root].[Network Indicator], [ER Root].[Prov Indicator], [ER Root].[Pos…
5
votes
3 answers

Create stored procedure in MS Access?

I would like to know if it's possible to create a StoredProcedure to Insert data in an Acces database. I've tried a couple of thing but nothing so far seem to do the trick. Thanks
Sabourin01
  • 53
  • 1
  • 1
  • 5
5
votes
4 answers

Converting MS Access 2000 to 2010

I am converting MS Access 2000 to MS Access 2010.The issue i am facing is,the MS Access 2010 is very slow (even freezes) after conversion. Previous Config: MS Access 2000 on XP with Link Tables to Sql server 2000 sitting on Windows 2000 New…
Ravi Yenugu
  • 3,895
  • 5
  • 40
  • 58
5
votes
6 answers

How to use "like" and "not like" in SQL MSAccess for the same field?

I would like to filter all the rows that are: field like "*AA*" and field not like "*BB*" But this is returning everything instead of showing all the rows that contains AA and doesn't contain BB. well now it works like expected, just restarted ms…
Totty.js
  • 15,563
  • 31
  • 103
  • 175
5
votes
1 answer

Running query in event procedure in Access?

I have a combo box in my form with Member IDs, when I select a member ID, I want my txtLastName text box to be set to the member's name. I know what to write for the SQL query, but I don't know how to run that query and obtain the resulting name and…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
4
votes
3 answers

Add A Background

I was wondering if there was any way of changing the background in access. The standard grey is ok but I would like to change it to an image that shows instructions or what was updated last. Also, if I can allow a user to change the background to…
Dan Thomas
  • 285
  • 1
  • 2
  • 16
4
votes
2 answers

SQL - Access conditional update

I have a table named POS_File_Detail. I would like to update Line_Number based on the count of the Invoice_Number and increment by 1 for every duplicate. So basically if I have three duplicate entries with the same Invoice_Number it will update…
Craig
  • 43
  • 5
4
votes
1 answer

Query for retrieving random records from MS Access

Possible Duplicate: How to get random record from MS Access database In my project I have gone through a scenario, where i have to retrieve records from MS Access table RANDOMLY. What query should I use to retrieve the records in a random base??
DS009
  • 169
  • 3
  • 5
  • 14
4
votes
2 answers

Microsoft Access error: "Because of your security settings and current security policy, this control is disabled"

I am getting an issue with a access 2007 application that I am working on. Access acts as a front end for a SQL server 2005 backend. When I try to click on a richtext control on the form, it gives me the following error: Because of your security…
skub
  • 2,266
  • 23
  • 33
4
votes
1 answer

Access 2000 Report -- alternate row color

I inherited a MS Access database and at my new job. I don't know much about Access and they asked if I could make every other line of a report a different color so it is easier to read. Is there an easy way to do this?
Dan Thomas
  • 285
  • 1
  • 2
  • 16
4
votes
2 answers

How to mouse over rows to display full text with VBA or Macros? Microsoft Access 2007

In Microsoft Access 2007 under (Form View), how do you make text in a table display the entire description when you mouseover one of the rows on the table. As shown on the picture above. I could not find any information on the internet to…
Jane Holden
  • 43
  • 1
  • 4
4
votes
1 answer

MS Access 2007 popup form refuses to display/not accessible in design mode (but present in list of forms)

Having a problem with MS Access 2007 refusing to display a form in design mode. I can see the code for the form (if I go through the event properties of a button that displays the form), but I cannot see the form laid out as a GUI. And, when I try…
user1104028
  • 381
  • 7
  • 18
1 2 3
99
100