Question

Lab Assignment – Database Implementation and Security In this lab you will create a Microsoft Access...

Lab Assignment – Database Implementation and Security In this lab you will create a Microsoft Access database of employee information and secure the table username and password security. Steps Enter data for five employee records. Each record should have fields: Employee ID (5 digits), First Name, Last Name, Home Address, Hire Date Create a query that displays Employee ID, First Name and Last Name. Create a form that requires entering username and password to access employee table. Error message should be displayed if incorrect username or password is entered. Use admin for the username and 1105 for the password.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Employee Table

SELECT Employee.Id, Employee.FirstName, Employee.Lastname
FROM Employee;

printing message when wrong password is entered

Option Compare Database

Private Sub Command1_Click()

Dim db As DAO.Database
Dim sqlstring As String
Dim rs As DAO.Recordset
Set db = DBEngine(0).Databases(0)

If IsNull(Me.txtLogin) Then
MsgBox "Please enter Login ID", vbInformation, "LoginID required"
Me.txtLogin.SetFocus

ElseIf IsNull(Me.txtPassword) Then
MsgBox "Please enter Password", vbInformation, "Password required"
Me.txtPassword.SetFocus
Else
If (IsNull(DLookup("userName", "user", "userName = '" & Me.txtLogin.Value & "' And password='" & Me.txtPassword.Value & "'"))) Then
MsgBox "Invalid UserName or Password!"
Else

lngCount = 0
Set db = CurrentDb()
sqlstring = "select * from Employee"
Set rs = db.OpenRecordset(sqlstring, dbOpenSnapshot)
db.Execute (sqlstring)


End If


End If

End Sub

Add a comment
Know the answer?
Add Answer to:
Lab Assignment – Database Implementation and Security In this lab you will create a Microsoft Access...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lab Assignment – Database Implementation and Security In this lab you will create a Microsoft Access database of employee information and secure the table username and password security. Steps Enter...

    Lab Assignment – Database Implementation and Security In this lab you will create a Microsoft Access database of employee information and secure the table username and password security. Steps Enter data for five employee records. Each record should have fields: Employee ID (5 digits), First Name, Last Name, Home Address, Hire Date Create a query that displays Employee ID, First Name and Last Name. Create a form that requires entering username and password to access employee table. Error message should...

  • Microsoft Access 0 database name should be the broad name of what will be inside it....

    Microsoft Access 0 database name should be the broad name of what will be inside it. If I were creating a database on the history of the Pittsburgh Steeler Coaches I would call mine SteelerCoaches.accdb, for example. A. Design one table with at least a. 6 Fields (can have more, but not more than 10) b. Correct datatypes for your fields c. Property changes appropriate to the fields. Have all Field names with more than one word have no spaces...

  • You will create an Microsoft Access School Management System Database that can be used to store,...

    You will create an Microsoft Access School Management System Database that can be used to store, retrieve update and delete the staff/student. Design an Access database to maintain information about school staff and students satisfying the following properties: 1. The staff should have the following: ID#, name, and classes they are teaching 2. The student should have the following: ID#, name, section, class 3. Create a module containing the section, subject and teacher information 4. Create a module containing student...

  • Lab 4: Databased Admin Tool Continued Python Objective: In the previous lab, you developed an admin tool for username an...

    Lab 4: Databased Admin Tool Continued Python Objective: In the previous lab, you developed an admin tool for username and password management. You accomplished the tasks with Dictionary or List. Here, use class to design your own data structure to accomplish a similar task. The UD.txt datafile: FIRST NAME, LAST NAME,USERNAME,PASSWORD Sam, DDal,sdd233,Pad231 Dave, Dcon,dcf987, BHYW4fw Dell, Grant,dgr803,Sb83d2d Mike, Kress,mkr212,UNNHS322 Lisa,Kate,lki065,dgw6234 Paul,Edward,ped332,9891ds Youyou,Tranten,ytr876,dsid21kk Nomi,Mhanken,nmh223,3282jd3d2 Write a program that imports the database from UD.txt, your program can search for users’ password....

  • microsoft access hi i am trying to create a query to find employees with the same...

    microsoft access hi i am trying to create a query to find employees with the same last name as me. in my table, the first and last name are combined under the field employee names. ive run the query but i get zero results even though there are three matches. please help

  • Microsoft Access 2013. Possible to attach the database here ? Make a list of at least...

    Microsoft Access 2013. Possible to attach the database here ? Make a list of at least two different queries you could create related to this event database. Remember that you can run queries on a single table, or, because these tables are joined in relationship, you can run queries based on multiple tables. One of the two queries should be a multiple-table query. Your query list should include-type of query ( I.e simple query, exact match, parameter, cross tab, etc),...

  • 1. Write a script that creates a user-defined database role named OrderEntry in the MyGuitarShop database....

    1. Write a script that creates a user-defined database role named OrderEntry in the MyGuitarShop database. Give INSERT and UPDATE permission to the new role for the Orders and OrderItems table. Give SELECT permission for all user tables. 2. Write a script that (1) creates a login ID named “RobertHalliday” with the password “HelloBob”; (2) sets the default database for the login to the MyGuitarShop database; (3) creates a user named “RobertHalliday” for the login; and (4) assigns the user...

  • IS 331 NJIT Assignment 5 Steps to complete in Microsoft Access Use the sample solution to...

    IS 331 NJIT Assignment 5 Steps to complete in Microsoft Access Use the sample solution to assignment 4 (below) as the conceptual model, develop a logical model (relational model) based on it. Specify all the integrity constraints in English. For each table in the Assignment 4 solution, write a relation in the form TableName(PK attribute, attribute 1, attribute 2, etc) For each relationship connection between the tables, write a constraint in the form CONSTRAINT foreign_key REFERENCES reference_table_name For any N:M...

  • Create the database and tables for the database. Show all SQL statements. Include primary and foreign...

    Create the database and tables for the database. Show all SQL statements. Include primary and foreign keys. Insert data into each table. Show select statements and display the output of each table. Note:Student’s name must be inserted into table as part of the data! Perform the SQL below: Query one table and use WHERE to filter the results. The SELECT clause should have a column list, not an asterisk (*). State the purpose of the query; show the query and...

  • I need atleast 1000 words in this assignment, thank you. Create Activity diagram Use-case diagram CRC...

    I need atleast 1000 words in this assignment, thank you. Create Activity diagram Use-case diagram CRC cards Class diagrams for developing a new online attendance system to be developed for a university. The steps of the activity diagram are as follows: (You have to follow every step to create the complete activity diagram) a) The faculty is asked to first enter valid username and password in the system. b) If an invalid username or password is entered, a message is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT