You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Language/Reference/User-Interface-Help/typename-function.md
-2
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,6 @@ The string returned by **TypeName** can be any one of the following:
44
44
|Unknown|An object whose type is unknown|
45
45
|**[Nothing](nothing-keyword.md)**|Object variable that doesn't refer to an object|
46
46
47
-
<br>
48
47
49
48
If _varname_ is an [array](../../Glossary/vbe-glossary.md#array), the returned string can be any one of the possible returned strings (or **Variant**) with empty parentheses appended. For example, if _varname_ is an array of integers, **TypeName** returns `"Integer()`".
Copy file name to clipboardexpand all lines: access/Concepts/Controls/refer-to-tab-control-objects-in-vba.md
+5-11
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.localizationpriority: medium
9
9
10
10
# Refer to tab control objects in VBA
11
11
12
-
Use a tab control to present several pages of information about a single form. A tab control is useful when your form contains information that can be sorted into two or more categories.
12
+
Use a tab control to present several pages of information about a single form. A tab control is useful when your form contains information that can be sorted into two or more categories.
13
13
14
14
In most ways, a tab control works like other controls on a form and can be referred to as a member of a form's **[Controls](../../../api/Access.Controls.md)** collection. For example, to refer to a tab control named TabControl1 on a form named Form1, you can use the following expression:
15
15
@@ -25,10 +25,9 @@ Form1!TabControl1
25
25
26
26
```
27
27
28
-
29
28
## Refer to the Pages collection
30
29
31
-
A tab control contains one or more pages. Each page in a tab control is referenced as a member of the tab control's **[Pages](../../../api/Access.TabControl.Pages.md)** collection. Each page in the **Pages** collection can be referred to by either its **[PageIndex](../../../api/Access.Page.PageIndex.md)** property setting (which reflects the page's position in the collection starting with 0), or by the page's **[Name](../../../api/Access.Page.Name.md)** property setting.
30
+
A tab control contains one or more pages. Each page in a tab control is referenced as a member of the tab control's **[Pages](../../../api/Access.TabControl.Pages.md)** collection. Each page in the **Pages** collection can be referred to by either its **[PageIndex](../../../api/Access.Page.PageIndex.md)** property setting (which reflects the page's position in the collection starting with 0), or by the page's **[Name](../../../api/Access.Page.Name.md)** property setting.
32
31
33
32
There is no default collection for the **[TabControl](../../../api/Access.TabControl.md)** object, so when referring to items in the **Pages** collection by their index value, or to properties of the **Pages** collection, you must explicitly refer to the **Pages** collection.
34
33
@@ -46,7 +45,7 @@ Page1.Caption = "First Page"
46
45
47
46
```
48
47
49
-
> [!NOTE]
48
+
> [!NOTE]
50
49
> If a user or code changes a page's **PageIndex** property, the reference to the page's index and the page's position in the page order change. In this case, if you want to maintain an absolute reference to a page, refer to the page's **Name** property.
51
50
52
51
The **Pages** collection has one property, **[Count](../../../api/Access.Pages.Count.md)**, that returns the number of pages in a tab control. Note that this property is not a property of the tab control itself, but of its **Pages** collection, so you must explicitly refer to the collection. For example, to determine the number of pages in TabControl1, use the following statement:
@@ -56,7 +55,6 @@ TabControl1.Pages.Count
56
55
57
56
```
58
57
59
-
60
58
## Refer to and change the current page
61
59
62
60
A tab control's default property is **[Value](../../../api/Access.TabControl.Value.md)**, which returns an integer that identifies the current page: 0 for the first page, 1 for the second page, and so on. The **Value** property is available only in VBA code or in expressions. By reading the **Value** property at run time, you can determine which page is currently on top. For example, the following statement returns the value for the current page of TabControl1:
@@ -66,7 +64,7 @@ TabControl1.Value
66
64
67
65
```
68
66
69
-
> [!NOTE]
67
+
> [!NOTE]
70
68
> Because the **Value** property is the default property for a tab control, you don't have to refer to it explicitly. For this reason, you could omit `.Value` from the preceding example.
71
69
72
70
Setting a tab control's **Value** property at run time changes the focus to the specified page, making it the current page. For example, the following statement moves the focus to the third page of TabControl1:
@@ -94,10 +92,9 @@ Page1.PageIndex = 1
94
92
95
93
The **PageIndex** property is more typically set at design time in a page's property sheet. You can also set the page order by right-clicking the border of a tab control, and then clicking **Page Order** on the shortcut menu.
96
94
97
-
98
95
## Refer to controls on a tab control page
99
96
100
-
The controls you place on a tab control page are part of the same collection as all controls on the form. For this reason, each control on a tab control page must have a name that is unique with respect to all other controls on the same form. Refer to controls on a tab control page by using the same syntax for controls on a form without a tab control.
97
+
The controls you place on a tab control page are part of the same collection as all controls on the form. For this reason, each control on a tab control page must have a name that is unique with respect to all other controls on the same form. Refer to controls on a tab control page by using the same syntax for controls on a form without a tab control.
101
98
102
99
```vb
103
100
Forms!Employees!HomePhone
@@ -132,11 +129,8 @@ ErrorHandler:
132
129
EndSub
133
130
```
134
131
135
-
<br/>
136
-
137
132
Additionally, each page on a tab control has its own **Controls** collection. By using a page's **Controls** collection, you can refer to controls on each page. The following code enumerates the controls for each page of the tab control on the Employees form.
Copy file name to clipboardexpand all lines: access/Concepts/Data-Access-Objects/set-properties-of-data-access-objects-in-visual-basic.md
-4
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ Most of the properties you can set for DAO objects are DAO properties. These pro
22
22
23
23
To set a property that's defined by the Access database engine, refer to the object in the DAO hierarchy. The easiest and fastest way to do this is to create object variables that represent the different objects you need to work with, and refer to the object variables in subsequent steps in your code. For example, the following code creates a new **TableDef** object and sets its **Name** property:
24
24
25
-
26
25
```vb
27
26
DimdbsAsDAO.Database
28
27
DimtdfAsDAO.TableDef
@@ -31,7 +30,6 @@ Set tdf = dbs.CreateTableDef
31
30
tdf.Name="Contacts"
32
31
```
33
32
34
-
35
33
## Set Microsoft Access properties for DAO objects
36
34
37
35
When you set a property that's defined by Microsoft Access, but applies to a DAO object, the Access database engine doesn't automatically recognize the property as a valid property. The first time you set the property, you must create the property and append it to the **Properties** collection of the object to which it applies. Once the property is in the **Properties** collection, it can be set in the same manner as any DAO property.
@@ -48,8 +46,6 @@ Keep in mind that when you create the property, you must correctly specify its *
48
46
|**True** / **False**|**dbBoolean**|
49
47
|An integer|**dbInteger**|
50
48
51
-
<br/>
52
-
53
49
The following table lists some Microsoft Access-defined properties that apply to DAO objects.
Copy file name to clipboardexpand all lines: access/Concepts/Miscellaneous/0-database-engine-driver.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.date: 06/08/2019
10
10
ms.localizationpriority: medium
11
11
---
12
12
13
-
# 0 Database Engine driver
13
+
# 0 Database Engine driver
14
14
15
15
**Applies to:** Access 2013 | Access 2016
16
16
@@ -19,13 +19,15 @@ When you install the Microsoft Access database engine database driver, the Setup
19
19
## Microsoft Jet Engine initialization settings
20
20
21
21
The **Access Connectivity Engine\Engines** folder includes initialization settings for the msjet40.dll database engine, used for access to Microsoft Access databases. Typical initialization settings for the entries in this folder are shown in the following example.
22
+
22
23
```jet
23
24
SystemDB = <path>\System.mdb
24
25
25
26
CompactBYPkey = 1
26
27
27
28
PrevFormatCompactWithUNICODECompression=1
28
29
```
30
+
29
31
The Microsoft Access database engine uses the following entries.
30
32
31
33
|**Entry**|**Description**|
@@ -35,6 +37,7 @@ The Microsoft Access database engine uses the following entries.
35
37
|PrevFormatCompactWithUNICODECompression|Microsoft Access database engine databases use the Unicode character set to store textual data. Compressing the Unicode data can significantly improve the performance of the database because of the reduced number of page read/write operations that are needed afterwards. This key determines if databases created by the Microsoft Jet database engine version 3.x or earlier should be created with compressed Unicode or un-compressed Unicode.<br/><br/>**NOTE** This setting does not apply to compacting Microsoft Access database engine databases. Microsoft Access database engine databases will default to keep the compression settings with which they were created.|
36
38
37
39
The **Access Connectivity Engine\Engines\ACE** folder includes initialization settings for the Ace.dll database engine, used for access to Microsoft Access databases. Typical initialization settings for the entries in this folder are shown in the following example.
40
+
38
41
```jet
39
42
40
43
FlushTransactionTimeout=500
@@ -63,11 +66,9 @@ The **Access Connectivity Engine\Engines\ACE** folder includes initialization se
63
66
64
67
PagesLockedToTableLock=0
65
68
66
-
<br/>
67
69
68
70
The Microsoft Access database engine uses the following entries.
69
71
70
-
<br/>
71
72
```
72
73
73
74
|Entry|Description|
@@ -86,10 +87,10 @@ The Microsoft Access database engine uses the following entries.
86
87
|SharedAsyncDelay|Specifies the length of time, in milliseconds, to defer an asynchronous flush of a shared database. The default value is 0. Values are of type REG_DWORD.|
87
88
|PagesLockedToTableLock|During bulk operations it is often more efficient to lock a whole table, instead of obtaining locks for each individual page of the table as you try to access it. This setting specifies the number of pages that the Microsoft Access database engine will allow to be locked in any particular transaction before the Access database engine attempts to escalate to an exclusive table lock The default value of 0 indicates that the Access database engine will never automatically change from page locking to table locking.|
88
89
89
-
> [!NOTE]
90
+
> [!NOTE]
90
91
> This setting should be used carefully. If a database is needed for multi-user access, locking a whole table could cause locking conflicts for other users. This would be especially severe if a small number was used for this setting. Even when a larger number was used, such as 25 or 50, the operation for other users might become unpredictable.
91
92
92
-
> [!NOTE]
93
+
> [!NOTE]
93
94
> When you change Windows Registry settings, you must exit and then restart the database engine for the new settings to take effect.
Copy file name to clipboardexpand all lines: access/Concepts/Miscellaneous/calculating-fields-in-sql-functions.md
-2
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,6 @@ The following table provides examples of calculations on fields from the Orders
27
27
28
28
The following example calculates the average discount amount of all orders in the Northwind.mdb database. It multiplies the values in the UnitPrice and Discount fields to determine the discount amount of each order and then calculates the average. Use this expression in an SQL statement in Visual Basic code:
29
29
30
-
<br/>
31
-
32
30
```sql
33
31
SELECTAvg(UnitPrice * Discount) AS [Average Discount] FROM [Order Details];
Copy file name to clipboardexpand all lines: access/Concepts/Miscellaneous/create-a-database-template-programmatically.md
-3
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ ms.localizationpriority: medium
12
12
13
13
The **SaveAsTemplate** method enables you to convert an existing Access database file to a database template (.accdt) format file that can be featured on the **Getting Started with Microsoft Office Access** page.
@@ -21,8 +20,6 @@ _expression_ A variable that represents a **TemplateCreator** object.
21
20
22
21
The following table describes the arguments of the **SaveAsTemplate** method.
23
22
24
-
<br/>
25
-
26
23
|Name|Required/Optional|Data type|Description|
27
24
|:-----|:-----|:-----|:-----|
28
25
|_TemplateLocation_|Required|**String**|The full path and file name of the database template to create.For the template to appear on the **Getting Started with Microsoft Office Access** page, it must be saved to **Microsoft\Templates** subfolder of the user's Application Data folder.<br/><br/>In Windows XP, the default location of the Application Data folder is **C:\Documents and Settings\ _User Name_ \Application Data**, where _User Name_ is the name of the user who is currently logged on.<br/><br/>In Windows Vista, the default location of the Application Data folder is **C:\Users\ _User Name_ \AppData\Roaming**, where _User Name_ is the name of the user who is currently logged on. Use the **Environ** function to determine the current location of the user's Application Data folder. The following code illustrates how to do this. `strTemplateLocation = Environ("AppData") & "\Microsoft\Templates\"`|
@@ -21,8 +20,6 @@ _expression_ A variable that represents an **AccessDeveloperExtensions** object.
21
20
22
21
The following table describes the arguments of the **CreateInstallPackage** method.
23
22
24
-
<br/>
25
-
26
23
|Name|Required/Optional|Data type|Description|
27
24
|:-----|:-----|:-----|:-----|
28
25
|_WizardSettingsFile_|Required|**String**|The path and file name of the wizard template file that contains the settings to use when creating the deployment package. To create a wizard template (.adepsws), click **Save Wizard Settings** on any Package Solution Wizard page.|
@@ -65,7 +62,6 @@ End Sub
65
62
To use this example, you must set a reference to the Access Developer Extensions type library. To do this, follow these steps:
66
63
67
64
1. On the **Tools** menu, click **References**.
68
-
69
65
2. Select the **Microsoft Office Access Developer Extensions Type Library 1.0** check box, and then click **OK**.
70
66
71
67
[!include[Support and feedback](~/includes/feedback-boilerplate.md)]
Copy file name to clipboardexpand all lines: access/Concepts/Miscellaneous/create-a-shortcut-menu-for-a-form-form-control-or-report.md
+2-6
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create a shortcut menu for a form, form control, or report
3
3
ms.prod: access
4
4
ms.assetid: 56fe8923-053f-e04d-78d6-c4dd814b6499
5
5
ROBOTS: INDEX
6
-
ms.date: 06/08/2019
6
+
ms.date: 02/20/2022
7
7
ms.localizationpriority: medium
8
8
---
9
9
@@ -20,7 +20,7 @@ To create a shortcut menu, you first have to create a **[CommandBar](../../../ap
20
20
21
21
The following example creates a shortcut menu named **SimpleShortcutMenu** that contains two commands, **Remove Filter/Sort** and **Filter by Selection**.
22
22
23
-
> [!NOTE]
23
+
> [!NOTE]
24
24
> To use the following examples, you must set a reference to the **Microsoft Office 15.0 Object Library**. See [Set References to Type Libraries](../Settings/set-references-to-type-libraries.md) for more information about how to set references.
25
25
26
26
```vb
@@ -81,8 +81,6 @@ Set cmbRightClick = Nothing
81
81
EndSub
82
82
```
83
83
84
-
<br/>
85
-
86
84
The following example creates a shortcut menu named **cmdReportRightClick** that contains commands that are useful to use with a report. This example shows how to change the **Caption** property of each control as they're added to the shortcut menu.
87
85
88
86
```vb
@@ -135,8 +133,6 @@ Sub CreateReportShortcutMenu()
135
133
EndSub
136
134
```
137
135
138
-
<aname="AboutContributors"> </a>
139
-
140
136
## About the contributors
141
137
142
138
Sample code provided by Edwin Blancovitch, president of [Advanced Developers.net](https://advdev.net/), creators of [Easy Payroll](https://www.easypayroll.net/), a software package to manage your human resources, payroll, scheduling, time, and attendance needs.
Copy file name to clipboardexpand all lines: access/Concepts/Miscellaneous/new-in-access-for-developers.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: New in Access for developers
3
3
ms.prod: access
4
4
ms.assetid: df778f51-d65e-4c30-b618-65003ceb39b3
5
-
ms.date: 08/06/2021
5
+
ms.date: 02/06/2022
6
6
ms.localizationpriority: medium
7
7
---
8
8
@@ -30,7 +30,7 @@ An Access 2013 app is online the moment it's created. You can decide to share th
30
30
31
31
## Views
32
32
33
-
Views (known as _"forms"_ in Access desktop databases) provide the means by which users will interact with your Access app. Views in Access 2013 apps contain a common set of user interface elements that enable rapid creation of new apps.
33
+
Views (known as _"forms"_ in Access desktop databases) provide the means by which users will interact with your Access app. Views in Access 2013 apps contain a common set of user interface elements that enable rapid creation of new apps.
34
34
35
35
Access 2013 is designed to enable you to create functional views with little intervention. When you create a new table, Access automatically creates two views. The following figure shows a new table with the automatically-created views.
0 commit comments