Create cmdbutton on your form that will run the action query

Assignment Help Database Management System
Reference no: EM131864519

Assignment

Overview: Your assignment is to develop an entry form that will record credit sales into a transaction file (tblOrdertrans) for a simplified Customer Accounts Receivable system. This transaction file will then be used to perform a batch update of a Customer master file (tblCustBalance). You will need to copy the database from the first Project and modify the data entry form you had created. You should create two additional data tables (tblCUSTBALANCE), and (tblPRODUCTS) and add some records (as described below), in addition to (tblORDERTRANS). Note Well: Please refer to the "Overview of Recommended Steps for Completing the SQL Batch Update Process..." description at the very end of this write-up for a brief general overview of the recommended order of the major steps to follow for completing this project.

Remember to include all the basic data validations at the form level and table level that you developed in Project #1. The file structure of the two new tables (with validations and defaults) should be:

New Tables:

tblCUSTBALANCE table [Note: create this table with NINE records (using Custno's 111,222,...,999), make up YOUR OWN unique names, e.g. friends, celebrities, etc.]
Fieldname Datatype Validation rule Default
Custno(primary key) Number Must be 3 digits 111
Company name Text
Balance Currency 0
Sellingprice Currency 1000

tblPRODUCTS table[Note: you should create this table with five records (11,22,...,55) make up your own product names.]
Prodnum(primary key) Number Must be 2 digits 11
ProdName Text
Sellingprice Currency Must be positive 0

Adjustments to Existing Form: You must also make some small changes to the form design that you created in Project 1. Specifically, you should develop a combobox object for Custno that references the tblCUSTBALANCEtable. This replaces the Custno textbox from Project 1. The combobox should show two fields in the dropdown (Custno and CompanyName). You should also develop a combobox object for Prodnum (Showing Prodnum and ProdName) that references the tblPRODUCTS table. Each of these combo boxes should be" limit to list". Finally, you should slightly modify the Form level validation rule for Transdate to ensure the transaction took place in the past week.

Adjustments to Existing Table: Although your transaction table (tblORDERTRANS) remains relatively the same as in project #1, you may want to delete all the records in it (and eventually add new ones) because of the new field and data restrictions described here. You must also ensure that all records added to tblORDERTRANS has a matching customer number (i.e. parent) in tblCUSTBALANCE. You must add a new field (Time_DatePost) to help maintain the audit trail and track when the transaction was actually posted to master file. This field will not have an object on the input form since the user does not directly enter it. After creating the two new tables (i.e. tblCUSTBALANCE and tblPRODUCTS), be sure to establish the proper relationships (i.e. 1:M) between each of the two tables and tblORDERTRANS. Please note that although we are establishing tblPRODUCTS in this database, we are NOT going to update this table through any form in this particular project (we'll do that later in the semester).

The entire table structure for tblOrderTrans is shown below with changes (from the first project) shown in italic bold.

 

tblORDERTRANStable and form [Be certain this form ONLY allows additions, not edits or deletions.]
Fieldname Datatype FormObject FormValid Default
Transnum Autonumber Textbox
Custno Num Combobox None (Must be in tblCustbalance table)
Transdate Date Textbox <=date() and >=date()-7 (only on form) Date()
Prodnum Num Combobox None (Must be in tblProducts table)
Qty Num Textbox Can not be negative 1
Newcharge Cur Textbox Can not be Negative 0
Newpayment Cur Textbox Can not be negative 0
Posted Num None-not on form 0
Time_Datepost Date/Time None-not on form

Your form should write the new orders (sales) transactions into the tblORDERTRANS table. You should include a command button on the form that will execute an SQL UPDATE command to perform the batch update (refer to class demonstration). Reminder: You must move off the current record (i.e. to the next or previous record) you are entering in order for it to be recorded in the tblORDERTRANS table. This will ensure it will be used in the SQL update.

For Project #2 (for grading purposes), be sure the default Access database messages that display the number of records to be updated are NOT suppressed (as shown and discussed in class), after you click your command button. For example, the first time you click the command button on your form the message may say that 8 records will be updated (assuming you added 8 new records to the table) when running the SQL batch update. If you were to immediately click the button on your form again (without adding any new transactions), you should receive a similar message that says zero records will be updated. For any future projects, (or if you use this technique in your group project at the end of the semester), you might wish to suppress these preliminary messages. However, you should still provide some feedback that the batch process has been accomplished.

Project Reminders and Notes:

1) Be sure to click "Enable Content" on the Security Warning bar that appears when you first open your database; otherwise, your batch update query may not do anything when run.

2) Be sure you have your database automatically compact itself when closing, otherwise it can get big, very fast. To ensure it compacts, select the File tab (upper left of screen), then click the "Options" button (2nd to bottom on left side of screen), click the "Current Database" (2nd item in the left-hand column), ensure the "Compact on Close" checkbox is checked.

3) Ensure you do not have the Form object, Timer property set to "Me.Refresh" to make the time display dynamic. If you keep it set to refresh as in Project #1, your combo boxes will not work well.

4) For this Project, you still need to make up and enter your own numbers for the Customer NewCharge and New Payment fields for each of the transactions you enter. Simply make up something reasonable. Later in the semester you will learn how to automatically calculate the NewCharge by referring to tblProducts and automatically multiplying the Quantity * Selling Price for the Product the Customer selected.

Overview of Recommended Steps for Completing SQL Batch Update Process by Using an Access Action Query:

1) Create and modify table structure of all necessary tables AND add a few reasonable records to each table, including at least two records in tblORDERTRANS that match a single Customer number in tblCUSTBALANCE (e.g. for Customer # 444).

2) Establish relationships between tables.

3) Write SQL Batch Update Code (in WordPad or other text editor)

4) Begin to create a basic Query in Access, then Copy and Paste the SQL code you wrote in WordPad into the SQL View of the Query.

5) Create cmdButton on your Form that will run the Action Query.

6) Complete all other necessary form and database adjustments required by Project description.

*Use the Access file I attached below.

Attachment:- Data-file.rar

Reference no: EM131864519

Questions Cloud

What is the significance of stephens dying vision of jesus : Cornelius is described in Acts 10 as devout, fearing God, and prayerful. Indeed, God took note of his good works and heard his prayers.
Find the equation of the best-fitting straight line : In studying the "ozone-deficit" problem (Science, September 23, 1994, page 1835), one experiment measured laser-induced fluorescence
Compute the project net present value : If Granger's marginal tax rate is 40%, and its cost of capital equals 11%, compute the project's net present value.
Describe the macroenvironment : Describe the macroenvironment in which Walmart operates/markets. Discuss how the economic, technlogical, economics, current demographic, political/social.
Create cmdbutton on your form that will run the action query : Create cmdButton on your Form that will run the Action Query. Complete all other necessary form and database adjustments required by Project description.
The difference between the church and the business world : Ministry is not a one-man enterprise. It is an undertaking that takes a community. This paper was designed to help you become a better minister.
What are ways to improve motivation in the workplace : Describe the motivator-hygiene model. What is the motivators factors and what are some hygiene factors? How can you apply this model in workplace?
Find the equation of the regression line : Find the equation of the regression line of In y in terms of and calculate the correlation coefficient.
What is change in net working capital : At the beginning of the year, a firm had current assets of $5,500 and current liabilities of $5,700. What is the change in net working capital?

Reviews

Write a Review

Database Management System Questions & Answers

  What measures can we take to protect ourselves from hackers

Do you think that HR should be migrating over to the cloud? Whyorwhynot - What measures can we take to protect ourselves from hackers

  Write up a list of entities tables for your project idea

Write up a list of entities "tables" for your project idea.

  Identify the different entities of each entity

Database Systems and Administration - (ECM38IS) Design an Entity Relationship Diagram (ERD) to model the above scenario. Identify the different entities of each entity.

  Explain step that you would use in order to convert database

Describe the steps that you would use in order to convert database tables to the First Normal Form, the Second Normal Form, and the Third Normal Form.

  Discuss the profit maximization approach

Compare the cost minimization and the profit maximization approaches to the derivation of the transactions demand for money.

  Write a two to three page paper in which youdocument the

write a two to three page paper in which youdocument the requirements based on the information provided and assumptions

  Excel for decision support modeling

Willy Wonka is considering starting a production line to produce fizzy lifting drinks. As Chief Oompa Loompa (COL) you have access to a wide variety of financial data to help you determine whether bringing the new production line on will be a sma..

  Backup strategy that your organization has for data systems

Research the type of backup strategy that your organization has for their data systems. Summarize your findings. Do you agree with the strategy that your organization is using. Why or why not

  Analyze the database environment

Analyze the database environment, including its objectives (why will it be built?), its boundaries (what is in and out of scope?), its constraints (what rules must it follow?), and any challenges that will accompany its construction

  Olivias mountain adventure store

Visual Studio Express to build a Web-site with Access database - Olivias Mountain Adventure Store (OMAS)

  Describe the structural organization of your database

Describe the structural organization of your database.What is the survey population description?Define pre-intervention.Define a database record. How many records are in your database?Define a database field. How many fields are in your database?

  Build relational database that will allow for querying thing

Build a relational database that will allow for querying things such as products sold, customer purchases, total apartment purchases, and total spent per apartment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd