answersLogoWhite

0

Microsoft Access

Microsoft Access is a database management system. Part of the Microsoft Office suite, Access can be used to edit data stored in various database formats, such as SQL (multiple varieties), Oracle, Excel, XML, etc. Questions about this software and how to use it belong here.

1,050 Questions

What is the purpose of using access?

Computer access allows a user to have access to another persons computer to assist with technical problems. This is a process usually done remotely and it is done by a technician.

How does one access NTL webmail?

You can access your NTL webmail account from any computer with internet access by going to the NTL website and then entering your information. Depending on what type of phone you have, you may also be able to access your webmail from your phone.

Where can you get MS Access training?

In places like schools, colleges and training centres you can get courses. You will also find online courses and other online resources to help you learn, on the internet. You can also buy books on Access. Often you will get a CD with them, that provide training.

What are the data type available for Access table field?

Access Data Types are : Autonumber, Memo Text, Number, Yes/No, date/time, OLE object, Hyperlink, Currency.

Is Microsoft Access better than Microsoft Excel?

Both Excel and Access are capable of doing a lot of things that the other can do. Excel is a spreadsheet application and Access is a database application, so they are used for different things. They are different kinds of applications so they cannot be compared in full, only on certain things. If you want to do a lot of databasing things, while you can do them in Excel, Access is better for it. If you are doing a lot of calculations, then Excel is better although Access can do calculations too. So it depends on what you want to do.

How do you open the About dialog in Access 2007?

To see the About Microsoft Office Word 2007 dialog:

1. Click on the Office button in the upper left-hand corner.

2. Now click the Word Options button in the menu.

3. Select the Resources tab on the left-hand pane, you'll see "about Microsoft Office Word 2007" in the list on the right.

4. Click on the About button to bring up the About dialog.

What is sorting in ms access?

Sorting data is very important. It is a critical element of Access and all databases. Databases are for manipulating data and sorting is one way of manipulating data. We frequently need data to be in order. It makes things easier to find, like the way having names in order in a phonebook makes it easier to find them. It can also bring similar things together, so you know where duplicates occur. It can also help you to spot things that are missing or not put in correctly, because you will notice they are not in the expected place when you have sorted them. So there are lots of reasons for using sorting and that is why it is so important.

What are the MSAccess database objects?

MS Access Database objects are: Tables, Queries, Forms, Reports, Modules, Macros etc..

What is a row in a database called?

A database is said to be a collection of records and the data is stored in the table. A table consist of number of rows and columns. Row in the database table is known as a record .

What is the purpose of validation rule?

Answer

Software is just a lot of lines of code (numbers, letters and symbols that direct your computer). Therefore many people can manipulate software and use it without paying for it. Here in America we tend to obey copyright laws. However, in many other countries such as China it is common for people to distribute illegal copies of software. Software validation checks to see if they copy of software you are using has been tampered with. Microsoft has a Windows validation tool and if it discovers that you obtained Windows illegally than you will not people able to use Windows update. Software validation will never go away but neither will the people distribute illegally manipulated software.

How do you use the memo data type in Microsoft access?

The Memo data type is used like you would use the text data type in Mysql or Sql Server. It is a data type for large texts. In MS Access the Text data type can contain a maximum of 255 characters, for larger texts you use the Memo type.

Explain the use of chart wizard in Microsoft Excel with the help 7 an example?

The Chart Wizard is an automated feature allowing you to create a chart by going through steps including selecting the data you want to chart and the type of chart you want, amongst other things.

Printout is across the width of the page in access?

This is not a question, but my best guess of what you want to know is the word landscape.

Why use Ms access to create databases and why not use Microsoft Excel?

Access is a database. Excel is a spreadsheet. Both are useful to displaying data systematically, but a database is enormously more flexible. Access is a relational database, which is even more flexible than an ordinary database and permits the data to be manipulated in many ways.

+++

It's not "instead of" but "both" - using whichever is the better for the given work.

'

It does depend on your purposes. Excel is by far the better if you need only a single table, or if you need to embed a lot of mathematical formulae in the spread-sheet - though MS has ruined what had been its nearly-good graph routines. A database table looks like a spread-sheet page, but it lacks the rapid copying functions that are valuable features in Excel.

What is the maximum capacity of Microsoft Access 2010?

There is a 2GB limit in Access 2003 per MDB file. You can use multiple MDB files, however, and link them together to get beyond this limitation.

What are some examples of validation rules?

Validation rules limit what can go into a field. You might want to only allow values that are over 500 in a field, so the validation would be:

>500

You might want dates that are before the 1st of January 2010, so that would be like this:

<#01/01/2010#

What data validation rule is cautionary?

Data validation is all about what can be entered into a spreadsheet cell or database cell, you can choose an error message aswell as restricting what values can be entered, reducing human error and improving accuracy.

What is the purpose of report in Microsoft Access?

In the normal scheme of things you would enter data, then that is looked at. A report can be sent to screen or to a printer. It can give more details than looking at the table or at a standard query, such as giving subtotals and overall totals. It enables you to group things. It can be run from part or all of the database, so it can be based on tables or queries. Its output is intended to be printed, so it gives you appropriate options, such as page numbers, page headings etc.

What is the meaning of primary key in Microsoft access?

The primary key is the designation given to the field or fields that make a record unique in a table. Often times in Access an autonumber field is used as the primary key because Access will always generate a unique number for each record. Having a primary key is not a requirement but it is highly recommended that you have a primary key in each table.

What are the advantages of an SQL database as compared to a MS Access database?

There are many differences between Oracle and Access. First, you need to know that Oracle and Access are both relational database engines. Oracle is sold by Oracle Corporation and Access is sold by Microsoft. The biggest differences between the two are the size and number of users each supports. Oracle is a scalable enterprise database engine that supports from one to many (tens to hundreds of thousands) of simultaneous users. Access on the other hand is most commonly used as a single-user database but since the release of Access 97, can be augmented with Visual Basic code and can easily support 100+ simultaneous users (Top limit of 200 users). Oracle can support very large databases (Tens of Terabytes in size or larger), while Access is designed for much smaller databases in the 1 to 2 gigabyte size range. Oracle has a wide range of support features that can be used to monitor and tune database performance - Access is much more limited in its performance tuning capabilities. Microsoft's SQL Server rdbms is a direct competitor with Oracle and has a great many more similarities with Oracle. There are numerous incompatibilities between Access/Jet SQL and Oracle SQL, including, but not limited to the following:

1. The date delimiter is "#" in Access and " ' " (single quote) in Oracle and SqlServer.

2. In CHAR Datatype, Oracle returns trailing spaces. Access does not return trailing spaces in String data type. In Oracle, use VarChar2 Datatype.

3. Jet allows use of the "Join" keyword. Oracle uses "(+)" following the joined field(s). Join is not a recognized word in Oracle.

4. IIF() is allowed in Jet but in Oracle, you must use the DECODE function. See Oracle documentation.

5. The following functions in Jet must be translated in Oracle.

Mid(fld, 2, 2) - Substr(fld, 2, 2)

Left(2) - Substr(fld, 1, 2)

Right(n) - Substr( fld, Instr(...),n)

Len() - LENGTH()

Year(Fld) = 1997 - to_char(Fld, 'yyyy') = '1997'

Month(Fld) = 6 - to_char(fld, 'mm') = '06'

Trim(Fld) - LTrim() or RTrim()

6. Generally, you need to use "to_date('01/23/1978', 'mm/dd/yyyy')" to format a date for comparison in Oracle SQL whereas in Jet Sql you could simply use "#01/23/1978#".

7. "RENAME" is a reserved word in Oracle and is therefore an illegal field or table name, but not in Jet.

8. If a memory variable is used in a SQL statement, and the variable is a string with trailing spaces, Jet will trim the value before comparing to the database field. Oracle will not! Therefore, the following will work in Jet but not Oracle, assuming the Oracle field in VARCHAR[2].

Sql = " ... where fldname = 'abc ' ...."

9. Oracle SQL will not find uppercase data in the database if the value in the SQL statement is lowercase. Assume that the LastName field contains the value 'SMITH' in the Oracle table Policy. Access will make a find on the following SQL and Oracle will not (Like character would be "*" for Access.

select * from Policy where LastName Like 'smith%'

10. Conversion of Memo (Jet) fields to Oracle can be a problem. The only data type in Oracle that is analogous to the Memo in Jet is the Long. Although it can hold up to 2gb of string data, you cannot append more than approximately 5,000 characters to the existing Long field because you exceed the length of the maximum string length in an Oracle SQL Statement.

Additionally, you cannot use such expressions, as the following, usable in Jet, in Oracle. They result in the error, "Invalid use of Long Datatype."

select distinct LONGFLD

Length(LONGFLD)

It seems impossible to use a query to determine rows where there is data in the Long field since a Long field that has '' in it is not Null.

Oracle 8 has Append and Get Chunk commands, but the documentation in the Oracle 7.2 Book does not mention these functions, nor are there any examples of how to update a Long field that exceeds 5,000+ characters.

11. Use of the following sql can be extremely slow in Oracle.

select * from table where policy in

(select policy2 from table2 where .....)

Try using the Oracle Minus operator instead. It uses indexes where the "in (select...)" does not. See the Oracle documentation for usage of the Minus.

12. It is normal, when using Jet, to fill the recordsource property of a data control at design time, even if you are going to fill it with a specific SQL sometime after Form_Load. This is done in order to use the Grid Designer when a data control is bound to a Grid or Combo, etc. However, when the form loads, all such data controls are refreshed. If you have the table name as the data control recordsource, which would be normal for designer use, and assuming that dbSQLPassThrough is being used, the entire table is returned to the client machine and refreshed into the grid, even if the grid is not visible, i.e., on a different tab. In Jet, this will not be the case if "UseExactRow" property is not set and therefore will not take an inordinate amount of time, but in Oracle it could be disastorous!

An easy way to deal with this is to set the recordsource to "" in the Form_Load event, especially if you are connected to Oracle. Later on, your code will set the recordsource to the specific SQL as required. Note that this must be done in the Form_Load because the Grid will be refreshed by the time the Activate Event is fired.

13. Be aware that, when using dbSQLPassThrough, the entire recordset, specified by the SQL, is returned to the client machine, and is therefore readonly. At this point the recordset belongs to the client, and Oracle is out of the picture. In praticality, there is no difference between a Snapshot and Dynaset in passthrough mode.

14. Use of apostrophes (') in names and abbreviations are a problem in SQL. In Access, it may be circumvented by use of the double quote (") to encapsulate string data in the SQL statement instead of the apostrophe, thus allowing the use of the (') in the string. In Oracle, you can use two single quotes ('') to denote an apostrophe. The string below is valid in Oracle Sql.

... Set Lastname = 'O''Toole',...

15. In Access, an empty string ("") is not Null. Oracle's default parameter for Null is set to '' (double single quotes or empty string). In other words, Oracle, by default, treats an empty string field as Null. Therefore, the following code which works in Access, does not work in Oracle.

...Where RTrim(Fld) <> ''.....

In Oracle, change the SQL to:

... Where Fld is not null....

Also, the following sql will not work if a field is Null.

... Where THSTATE <> 'Z'...

Even though the field is null, and therefore <> 'Z', the row containing the Null field will not be returned. In order to get the row, you must enhance the SQL as:

...where (THSTATE <> 'Z' or THSTATE is Null)...

WHATEVER YOU THINK NULL IS, IT ISN'T!

16. When using dbSQLPassThrough with DAO, the RecordsAffected Property will always return -1, and there is apparently no way to determine whether any records were affected by an action sql or not.

17. When printing an error message from ODBC, if you print Error, as in the errors object, you will print "ODBC Call Failed", which is useless. Instead, print Errors(0).Description (or both) and you will get the true error description returned from the ODBC data source.

18. If you are having trouble with a bound data control returning less than the correct number of row, i.e., returns 100 rows when it should have returned 200 or more, set the DefaultCursorType to 1 (ODBC Cursor). For some reason this is not always required, but it will solve the problem of truncated recordsets in a data control connected to Oracle.

19. Access allows an Order By clause at the end of a query that uses a Union, but if you try this in Oracle, it will not work because Oracle ignores the column names in the result set from the Union. Not to worry! You can Order By column positions from the select statement. In other words, if Policy is returning in column 3 of the result set, and you want to order by Policy, then use "Order By 3..."