|
|
IT SOLUTIONS
Your TECHNOLOGY partner!
|
|
|
Prestwood eMagazineSubscribe now! It's Free!
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| KB Article | ||||||||||
Mike Prestwood |
1. Access VBA Array (x = Array())
Arrays in Access VBA use a 0-based indice. UBound returns -1 if the array has no elements, 0 if it has 1, 1 if it has 2, etc. Posted to KB Topic: Access & VBA
38 months ago
|
Code
4065
Hits |
||||||||
Mike Prestwood |
2. Access VBA Empty String Check (Len(s&vbNullString))
In Access VBA, you have to add an empty string to the value being compared in order to get consistent results. For example, add &"" to your string varilable or it's code equivalent &vbNullString. Then compare to an empty string or verify it's length to 0 with Len. Posted to KB Topic: Access & VBA
44 months ago
|
Code
5289
Hits |
||||||||
Mike Prestwood |
3. Access VBA Logical Operators (and, or, not)
Same as VB. Access VBA logical operators:
Posted to KB Topic: Language Basics
51 months ago, and updated 44 months ago
|
8881
Hits |
||||||||
Mike Prestwood |
4. Access VBA Self Keyword (Me)
Same as VB. The Me keyword is a built-in variable that refers to the class where the code is executing. For example, you can pass Me from one module to another. Posted to KB Topic: Language Details
50 months ago
|
Code
5387
Hits |
||||||||
Mike Prestwood |
5. Access VBA Deployment Overview
You can deploy your Microsoft Access application either with the full version of Access or with the Access Runtime (see Deploying Applications Using the Access Runtime). Posted to KB Topic: Language Basics
50 months ago
|
Code
3064
Hits |
||||||||
Mike Prestwood |
6. Access VBA Unary Operators
An operation with only one operand (a single input) such as + and -. Posted to KB Topic: Language Basics
54 months ago, and updated 51 months ago
|
Code
3042
Hits |
||||||||
Mike Prestwood |
7. Access VBA Variables (Dim x as Integer)
Access VBA is a loosely typed language. Declaring variables is optional unless you use the Option Explicit statement to force explicit declaration of all variables with Dim, Private, Public, or ReDim. Using Option Explicit is strongly recommended to avoid incorrectly typing an existing variable and to avoid any confusion about variable scope. Variables declared with Dim at the module level are available to all procedures within the module. At the procedure level, variables are available only within the procedure. Posted to KB Topic: Language Basics
54 months ago, and updated 51 months ago
|
5050
Hits |
||||||||
Mike Prestwood |
8. Access VBA Constants (Const kPI = 3.1459)
Scope can be Public, Global, or Private. The use of the newer Public keyword is preferred to the older Global. Private Const is the same as just specifying Const. Posted to KB Topic: Language Basics
53 months ago, and updated 52 months ago
|
Code
3789
Hits |
||||||||
Mike Prestwood |
9. Access VBA Comments (' or REM)
Access VBA, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). Access VBA does NOT have a multiple line comment. Directives are sometimes called compiler or preprocessor directives. A # is used for directives within Access VBA code. Access VBA offers only an #If..then/#ElseIf/#Else directive. Posted to KB Topic: Language Basics
54 months ago, and updated 52 months ago
|
7113
Hits |
||||||||
Mike Prestwood |
10. Access VBA Custom Routines (Sub, Function)
Access VBA is a non-OOP language with some OOP features. It offers both Subs and Functions. A Sub does not return a value while a Function does. When Subs and Functions are used in a class module, they become the methods of the class. Posted to KB Topic: Language Details
54 months ago, and updated 52 months ago
|
5456
Hits |
| Go ahead! Use Us! | Call: 916-726-5675 |
|
ACCOUNT OVERVIEW:
|
WHY US:
|
ABOUT US:
|
SELF HELP:
Web Address: [WhoIs]
|
CONTACT US:
Office Hours: 8am-5pm | Mon thru Fri
916-726-5675 (office)
916-726-5676 (fax)
916-726-5676 (24hr text)
8421 Auburn Blvd, STE 256
Citrus Heights, CA 95610
|
|
||||||||||||
|
|