You are on page 1of 7

Practical Lab Exam

Use the following database design for the Lending Sample Program in your workbook.
1. Login Form

Notice the password field in the grid, the actual value is represented by the symbol “*”

How?:
Right Click the grid, select edit
Go to Properties Window

Select Column 2 in the dropdownlist

Change the InputMask value. In this example, we used “*”

2. Add Record
3. Search Record

4. Loan
Change the Rowsource Property of the Collector and Co-Maker Combo Box using the
Builder Option

Select the table and database that you would like to display in the combo box

In this example, collector table is used.


How the program works:

• Enter Client No.


• The system displays the information of the client
• Checks if the Client has pending balance or loan

select * from loan where substr(client_no,1,len(alltrim(this.value))) ==altrim(this.value)


order by acct_no asc

if Client has a previous loan, the program will get the last acct_no assigned to the client by
sorting the account number in ascending order.

Once approved for loan application, the program will automatically generate the account no

select * from loans into cursor myloans order by acct_no asc


go bottom
nAccount_no = myloans.acct_no + 1

Recordsource Property - is used to specify the source of the data for a form or .control You can
display data from a table, query, or SQL statement.
5. Payments

How the program works:


• Enter Client Number
• The system displays the information of the client
• It will then check for the last account number assigned to the Client and will retrieve the
corresponding loan details including the assigned collector and co-maker
• Once retrieved, the program will compute for the outstanding balance and saves the
transaction in the database. If fully paid, the User will be prompted.

Note : Study also the SQL Basics

You might also like