Need help. access macros, vba, and sql

In this hands-on project, you will be downloading a database from the Lifetime Media Company, a film and graphics company that does onsite filming and photos. The company uses this database to manage equipment assigned to its employees. You will be completing the following tasks in Microsoft Access:

1. Create a stand-alone macro 

2. Create an embedded macro.

3. Create an event-driven data macro

4. Create a query by writing an SQL statement 

Project Preparation

1. Download the 

Lesson 12_Hands On Project(opens in a new tab)
 file to your course lesson folder. 

2. Extract the file to the same folder.

3. Open the file in Access.

4.
Save your file as ”
Lesson12_Project1_MEID.accdb” where MEID is your MEID.

Project Directions

Part 1: Stand-Alone Macro

This macro will open a table and a form.

1.
Create a new macro using the 
Macro Designer.

2.
Add an 
OpenTable action with the following arguments:

a. Table Name: Lifetime Media Equipment

b. View: Datasheet (default)

c. Date Mode: Edit (default)

3.
Save the Macro as ‘
Open 
Name Objects’
 where ‘
Name’ is your first name (example: Open John’s Objects).

4.
Add an 
OpenForm action with the following arguments:

a. Form Name: Equipment Checkout Form

b. View: Form (default)

c. Window Mode: Normal (default)

5.
Save and close the Macro. 

Part 2: Embedded Macro

This macro will deliver a pop-up message reminder when the user closes a report.

1.
Right-click the 
Equipment Assignments Report and open it in 
Design View. The 
Property Sheet should also be on the right of your screen. If it does not display, click the “Property Sheet” button in the Tools group on the Ribbon. 

2. In the Property Sheet, select ‘
On Close’ from the Event tab. 

3. Use the 
Macro Builder to
 create an embedded macro that will display a message box.

a. In the Macro Builder, choose 
Message Box from the 
Actions drop-down menu.

b. In the Message box type: ‘
Send Report to Auditor each Friday’.

c. Beep: Yes

d. Type: Information

e. Title: ‘
Reminder’

4.
Save and close the macro. 

5.
Save and close the report.

6. You can 
test your macro by opening the Equipment Assignments report from the Navigation pane and then closing the report. If you created the macro correctly, a pop-up message should appear on your screen.

Part 3: Event-Driven Data Macro

This macro will calculate a replacement value if the user indicates that replacement is required.

1.
Open the 
Lifetime Media 
Equipment table if not already opened. You will be adding fields to indicate if a lost/damaged item needs to be replaced and a field indicating the replacement amount per item.  

2.
Add a field titled ‘
ReplacementRequired’ and 
format the field as 
Short Text

3.
Add a field titled ‘
ReplacementAmountPerItem’ and 
format the field as 
Currency. Save the Table before moving on to the next step.

4.
Create an
 event-driven data macro to calculate a 60% replacement amount when the ‘
ReplacementRequired’ field has a value of 
“YES”. Use an “If-Else” statement that runs Before the record updates. The If-Else logic is as follows:

a. If the ReplacementRequired field is “YES”, the ReplacementAmountPerItem field should be set to 60% of the PerUnitCost field.

b. Otherwise (Else), set the ReplacementAmountPerItem field to a value of 0. 

Compare your If-Else statement with the illustration below.

5.
Save and Close the macro. 

6. In the 
Lifetime Media 
Equipment table enter 
“YES” for ‘
ReplacementRequired’ for records 2, 8, 9, 24, and 25. Enter 
“NO” for the rest. If you created your macro correctly, you should see calculated values in the ReplacementAmountPerItem field. 

7. In the 
Lifetime Media 
Equipment table, 
add the following 2 records:

a. One DSLR HD Camera for Jones at a per unit cost of $875.00 (Total Item Cost is $875.00). Replacement will not be required.

b. One Studio HD Camera for Bernard at a per unit cost of $1200.00 (Total Item Cost is $1200). Replacement will be required.

8.
Note: The replacement amounts are automatically calculated. 

9.
Save and Close the 
Lifetime Media 
Equipment Table. 

Event-Driven Data Macro - Sample Figure

image1.png

Calculate the price of your order

Choose an academic level, add pages, and the paper type you want.
To reduce the cost of our essay writing services, select the lengthier deadline.
We can't believe we just said that to you.

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Why is Purdue Papers the Most Helpful Essay Writing Service for You?

  1. Custom-written and plagiarism-free papers: Our authors create their work from scratch. Before presenting them to clients, we routinely verify them for signs of plagiarism. Our quality assurance group also double-checks and fixes any grammatical errors, assuring that all of our authors adhere to the same standards of writing.
  2. The significance of timely delivery cannot be overstated, and we consistently strive to meet or exceed our clients' deadlines. Regardless of the short time frame, you can count on our writers to get the job done. We always have a team of writers ready to go, even if the deadline is only six hours away.
  3. Customer Satisfaction: Our customer service representatives are the best in the business and have a wealth of knowledge in dealing with clients. All our customer service representatives are trained to listen and reply promptly until you are satisfied with their service. To ensure you're happy, our expert writers will strictly follow the criteria to generate a special report. Our customer service may be contacted by chat, email, or phone. In addition, we provide round-the-clock assistance to all of our clients.
  4. Confidentiality: Our systems are safe, and your information is always protected. We're constantly looking for new facts when it comes to finishing your work. We use a safe and secure payment channel. Since our ordering process is completely anonymous, you don't have to provide any credit card information to place a purchase with us.
  5. Highly Trained Authors: Our writers have received extensive training and are committed to delivering only the best papers. They are fluent in APA, MLA, HARVARD, IEEE, CHICAGO, and AMA referencing styles. To meet your expectations, our skilled writers always pay close attention to your instructions.
  6. Lowered prices: We have set prices that are already discounted. Our prices are the best and affordable for all our esteemed customers.

Let Professionals Take Care of your Academic Paper