Você está na página 1de 4

Ryan Hunt

Applied ICT, Database

3E)

2)

This is a screenshot of the macro that validates the correctness of the


password and username.
Ryan Hunt

The 2nd part of this macro opens up the Query “qryUsername+Password” which asks the system
weather the data inputted into the systems login screen matches anything that is on the systems files.

The 3rd part of this macro closes the query that the 2nd part of the macro has opened.

The 4th part of this macro is a message box which only opens if the data inputted into the login screen
is correct, if it is then the message box will display a welcome message.

The 5th part of this macro opens the main system.

The 6th part of this macro is a message box which only opens if the login details do not match
anything which is in the query, it tells the user that the inputted data doesn’t match anything and
prompts them to retype the details.
Ryan Hunt

The 7th part of this macro closes the login form.

In the condition column there are 4 Dcount’s which says if the inputted details on the login screen
is correct to the query “qryUsername+Password” then if its correct (=1) then those actions will
work but if it is incorrect (=0) then only that action will work.

4C)

2)
Ryan Hunt

Você também pode gostar