Deck 14: Creating Macros
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Match between columns
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/74
Play
Full screen (f)
Deck 14: Creating Macros
1
The End Function statement appears in blue.
True
2
A function created in a standard module can be used in any query in the database.
True
3
In VBA, normal text is black.
True
4
A function created in a standard module can be used in any report in the database.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
5

A) BMI
B) weight
C) height * 0.0254
D) End If
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
6

A) BMI
B) StartValue
C) Option Compare Database
D) StartValue * 0.5
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
7
GoToControl is an example of a(n) ____.
A) Object
B) Module
C) Procedure
D) Method
A) Object
B) Module
C) Procedure
D) Method
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
8
In VBA, comment text is black.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
9

A) Function
B) BMI
C) End Function
D) Option Compare Database
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
10
In VBA, syntax error text is green.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
11
This type of procedure performs a series of VBA statements, but is not used in an expression.
A) Argument
B) Method
C) Sub
D) Module
A) Argument
B) Method
C) Sub
D) Module
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
12
The End If statement is needed to mark the end of the If block of code.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
13

A) 1
B) 2
C) 3
D) 4
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
14
VBA uses different colors to mean different things.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
15
You would most likely create a function in a class module.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
16
This type of module is stored as a part of the form or report in which it was created.
A) Standard
B) Class
C) Function
D) Sub
A) Standard
B) Class
C) Function
D) Sub
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
17
Declaration statements return a value.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is NOT a built-in Access function?
A) Sub
B) Sum
C) Pmt
D) Now
A) Sub
B) Sum
C) Pmt
D) Now
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is NOT a type of procedure?
A) Declaration
B) Sub
C) Function
D) None of the above are procedures.
A) Declaration
B) Sub
C) Function
D) None of the above are procedures.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
20
The Else portion of an If...Then...Else construct is executed only if the expression is evaluated false.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
21
This type of procedure manipulates controls and objects.
A) Sub
B) Argument
C) Method
D) Declaration
A) Sub
B) Argument
C) Method
D) Declaration
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
22
This character separates multiple arguments in a function.
A) Period
B) Comma
C) Semicolon
D) Colon
A) Period
B) Comma
C) Semicolon
D) Colon
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
23
In VBA, keyword text is ____.
A) Blue
B) Black
C) Red
D) Green
A) Blue
B) Black
C) Red
D) Green
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
24
This VBA keyword(s) specifies the location of where the procedure should continue if an error occurs in the execution.
A) On Error Continue
B) GoTo Error
C) Error End
D) On Error GoTo
A) On Error Continue
B) GoTo Error
C) Error End
D) On Error GoTo
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
25
Which VBA keyword(s) declares the name and arguments that create a new function procedure?
A) Function
B) Start Function
C) Dim Function
D) Option Function
A) Function
B) Start Function
C) Dim Function
D) Option Function
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
26

A) Run
B) Break
C) Reset
D) View Microsoft Office Access
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
27

A) UserForm
B) Run Sub/UserForm
C) Reset
D) Project Explorer
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
28

A) Object Browser
B) Break
C) Project Explorer
D) Database
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
29
Why would you use the Zoom dialog box when creating an expression?
A) You must use the Zoom dialog box when entering VBA in an expression.
B) You must use the Zoom dialog box when entering SQL in an expression.
C) The Zoom dialog box gives you more room to enter an expression.
D) The Zoom dialog box precalculates the answer to an expression.
A) You must use the Zoom dialog box when entering VBA in an expression.
B) You must use the Zoom dialog box when entering SQL in an expression.
C) The Zoom dialog box gives you more room to enter an expression.
D) The Zoom dialog box precalculates the answer to an expression.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
30
Which VBA keyword(s) is required as the last statement of a sub procedure?
A) End
B) Sub End
C) End Sub
D) Sub
A) End
B) Sub End
C) End Sub
D) Sub
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
31
This type of module is stored within a particular form or report.
A) Function
B) Sub
C) Argument
D) Class
A) Function
B) Sub
C) Argument
D) Class
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
32
Which VBA keyword(s) is required as the last statement of a function procedure?
A) End Procedure
B) End Function
C) Option Procedure
D) Option Function
A) End Procedure
B) End Function
C) Option Procedure
D) Option Function
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
33
VBA stands for ____.
A) Visual Basic for Access
B) Virtual Basic for Access
C) Visual Basic for Applications
D) Virtual Basic for Applications
A) Visual Basic for Access
B) Virtual Basic for Access
C) Visual Basic for Applications
D) Virtual Basic for Applications
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
34

A) Object Browser
B) Run Sub/UserForm
C) Insert Module
D) View Database
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
35
Comment lines are preceded by a(n) ____.
A) Period
B) Exclamation point
C) Right parentheses
D) Apostrophe
A) Period
B) Exclamation point
C) Right parentheses
D) Apostrophe
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
36
This function returns today's date.
A) TodayDate
B) TodaysDate
C) Day
D) Now
A) TodayDate
B) TodaysDate
C) Day
D) Now
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following VBA keywords is a declaration statement that determines the way string values (text) will be sorted?
A) Option Compare Database
B) Option Compare Text
C) On Text GoTo
D) Select Case
A) Option Compare Database
B) Option Compare Text
C) On Text GoTo
D) Select Case
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
38

A) Opens a new module
B) Switches from active VB window to the Access window
C) Locks the procedure
D) Displays a list of currently open projects
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
39
This type of procedure is generally executed when an event occurs.
A) Method
B) Sub
C) Module
D) Declaration
A) Method
B) Sub
C) Module
D) Declaration
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following is NOT a type of module?
A) Class
B) Procedure
C) Standard
D) None of the above are modules.
A) Class
B) Procedure
C) Standard
D) None of the above are modules.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
41
A function created in a standard module can be used in any query in the database. _____
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
42
These types of errors occur after the code starts to run and include attempting an illegal operation, such as dividing by zero.
A) Compile-time
B) Syntax
C) Run-time
D) Logic
A) Compile-time
B) Syntax
C) Run-time
D) Logic
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) _____ is a procedure that returns a value.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
44
_____ statements precede procedure statements and help set rules for how the statements in the module are processed.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
45
Which is easier to create, a macro or a module, and why?
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
46

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
47

A) Object Browser
B) Access
C) Run Sub
D) Project Explorer
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
48
Name three reasons you must use a module rather than a macro.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
49
_____ modules are displayed as module objects in the Navigation Pane.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
50

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
51

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
52
VBA is written in Visual Basic Design View .
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
53
Visual Basic code is stored in a database object called a(n) _____.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
54

A) View Microsoft Access
B) Insert
C) Run Sub/UserForm
D) Project Explorer
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
55

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
56

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
57
Debug means to ____.
A) Write code using the Command Button Wizard
B) Find and resolve errors in code
C) Use conditional expressions in code
D) Use If...Then...Else statements in code
A) Write code using the Command Button Wizard
B) Find and resolve errors in code
C) Use conditional expressions in code
D) Use If...Then...Else statements in code
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
58
Forgetting an End If statement would be an example of which type of programming error?
A) Syntax
B) Run-time
C) Compile-time
D) Debug
A) Syntax
B) Run-time
C) Compile-time
D) Debug
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
59
In what situations must you use a macro instead of a module?
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
60
Which procedure is triggered after a field is updated?
A) On Got Focus
B) After Update
C) Current Record
D) Current Field
A) On Got Focus
B) After Update
C) Current Record
D) Current Field
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
61
Use the On Got Cursor event when you want to trigger when a procedure when a control gets the focus.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
62
Syntax errors in the Visual Basic Editor window are the most difficult type of error to find. _____
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
63
Match between columns
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
64
DoCmd is a VBA object that supports many methods to run common Access commands such as closing windows or opening forms.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
65
Aaron and Jeff are in the same advanced Access class and have teamed up to help each other understand VBA. In order to prepare for the VBA test, each has created a quiz for the other. Two of Aaron's questions are shown below. Which of the following defines a breakpoint?
A) Run-time error that stops execution in the immediate window
B) Bookmark that stops execution at that statement
C) Syntax error that must be debugged
D) Immediate window that provides more information about the procedure
A) Run-time error that stops execution in the immediate window
B) Bookmark that stops execution at that statement
C) Syntax error that must be debugged
D) Immediate window that provides more information about the procedure
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
66
Kelsey and Matt are in the same advanced Access class and have teamed up to help each other understand VBA. In order to prepare for the VBA test, each has created a multiple choice quiz for the other. Some of Kelsey's questions are shown below. Which of the following types of procedures is generally stored in standard modules vs. class modules?
A) Functions
B) Subs
C) Subroutines
D) Declaration statements
A) Functions
B) Subs
C) Subroutines
D) Declaration statements
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
67
Click the gray bar to the right of the VBA statement to toggle breakpoints on and off. _____
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
68
Aaron and Jeff are in the same advanced Access class and have teamed up to help each other understand VBA. In order to prepare for the VBA test, each has created a quiz for the other. Two of Aaron's questions are shown below. Which of the following contains the term that is described by the following statement?
"Declares a variable, a named storage location that contains data that can be modified during program execution."
A) Option Explicit
B) Option Compare Database
C) Dim
D) Private Sub
"Declares a variable, a named storage location that contains data that can be modified during program execution."
A) Option Explicit
B) Option Compare Database
C) Dim
D) Private Sub
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
69
Kelsey and Matt are in the same advanced Access class and have teamed up to help each other understand VBA. In order to prepare for the VBA test, each has created a multiple choice quiz for the other. Some of Kelsey's questions are shown below. Why do forms generally contain more VBA than reports?
A) They generally show one record of data at a time.
B) The user interacts with forms more than reports.
C) They store Structured Query Language.
D) They may contain expressions that calculate new pieces of information.
A) They generally show one record of data at a time.
B) The user interacts with forms more than reports.
C) They store Structured Query Language.
D) They may contain expressions that calculate new pieces of information.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
70
You use a(n) quotation mark to begin a comment line. _____
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
71
When you type a colon after the DoCmd object, IntelliSense technology helps you complete the statement.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
72
When you encounter a run-time error, VBA will stop execution of your procedure at the line in which the error occurred. _____
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
73
As you write a VBA statement, IntelliSense technology helps you complete it.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
74
Kelsey and Matt are in the same advanced Access class and have teamed up to help each other understand VBA. In order to prepare for the VBA test, each has created a multiple choice quiz for the other. Some of Kelsey's questions are shown below. Which of the following objects may not store class modules?
A) Queries
B) Forms
C) Reports
D) Each may store VBA
A) Queries
B) Forms
C) Reports
D) Each may store VBA
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck