Preview

Voting System

Satisfactory Essays
Open Document
Open Document
338 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Voting System
Dim rowx As Integer, colx As Integer
Dim rs As New ADODB.Recordset
Dim con As New ADODB.Connection

Public Sub connectdbase()

If con.State = 0 Then con.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & App.Path & "\database\ccvvfvc.mdb"
End If

End Sub

Sub setupFlex() With MSFlexGrid1 .Rows = 2 .Cols = 10 .RowHeightMin = 315

.TextMatrix(0, 1) = "Student No" .TextMatrix(0, 2) = "Student Name" .TextMatrix(0, 3) = "Prelim" .TextMatrix(0, 4) = "Midterm" .TextMatrix(0, 5) = "Prefinal" .TextMatrix(0, 6) = "Final" .TextMatrix(0, 7) = "Subject Grade" .TextMatrix(0, 8) = "PTS. Equivalent" .TextMatrix(0, 9) = "Remarks" .ColWidth(0) = 800 .ColWidth(1) = 1000 .ColWidth(2) = 2000 .ColWidth(3) = 1000 .ColWidth(4) = 1000 .ColWidth(5) = 1000 .ColWidth(6) = 1000 .ColWidth(7) = 2000 .ColWidth(8) = 2000 .ColWidth(9) = 1500 End With
End Sub

Private Sub cmdAdd_Click() MSFlexGrid1.AddItem ""
End Sub

Private Sub Form_load() setupFlex connectdbase Set rs = con.Execute("Select studentNo,studname from tblstudentinfo") If Not rs.EOF Then While Not rs.EOF With MSFlexGrid1 .TextMatrix(.Rows - 1, 1) = rs.Fields(0) .TextMatrix(.Rows - 1, 2) = rs.Fields(1)

rs.MoveNext .AddItem "" End With Wend End If
End Sub

Private Sub MSFlexGrid1_KeyPress(KeyAscii As Integer) rowx = MSFlexGrid1.Row colx = MSFlexGrid1.Col If KeyAscii = 13 Then If colx >= 3 And colx <= 6 Then With TxtInput .Left = MSFlexGrid1.CellLeft + MSFlexGrid1.Left .Top = MSFlexGrid1.CellTop +

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Pt1420 Unit 6 Lab Report

    • 288 Words
    • 2 Pages

    Step 6 : Break the input string into square matrices of maximum possible size of…

    • 288 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Part 1 1. Write a script which will Create the needed tables as follows: a. Table name : DEPT i. Column datatype Mandatory? PK? FK?…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    # Save the file with a name containing Lab3_, your first initial, and your last name (e.g., Lab3_JSmith.accdb). In Citrix, you will need to click the computer icon in the Save As window to see the different drives. Be sure to save the file to a local drive so it will be on your workstation.…

    • 694 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    8 x 1 = 1 x6 ---------- M. 5 x1 U. 1 x10 ---------- W. ----------…

    • 1388 Words
    • 41 Pages
    Satisfactory Essays
  • Satisfactory Essays

    COMP230 Week 4

    • 458 Words
    • 4 Pages

    WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)…

    • 458 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Only 57.5 percent of americans vote for the president. That is just over half of our population that votes for the person that is running our country for 4 years. There are many flaws with the american elections process, and there are many other forms of government such as parliament and what those major differences between our system of government which is representative democracy and parliament.…

    • 980 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    In the space provided below to copy and paste the remainder of your VBScript sourcecode.…

    • 642 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    voting

    • 1912 Words
    • 10 Pages

    Catalog Description: Study of the government of the United States, its theory, principles and institutions.…

    • 1912 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    In a true democratic society, it is essential to ensure a government that follows the will of the people and not the one that force the people to follow it, that is, a “government of the people, by the people, and for the people” as said by Abraham Lincoln in his Gettysburg address which lasted a little over two minutes on November, 19, 1863. Democracy is not government of some people by some people and for some people as a frequent practise in some developing nations. Democracy is a nation ruled by its citizenry. The beauty of democracy is that the minority will have their say but the majority will have their way. Functioning democracy implies where the people approve to the government operating the nation. All eligible voters are given chance to select their leader through their right to vote and to be voted for. In a truly democratic society, the representative or candidate who have been elected are liable in many ways to the people who voted and elected them. They have to implement those pledges made during elections with much transparency, accountability and good governance.…

    • 1423 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Voters I. D. Voting System

    • 1007 Words
    • 5 Pages

    In class we have been learning about the election, and there was many topic people don’t know. The Democracy is rule by the government that serve the people.The system tries to provide as much law to the every social organization. The founding father were revolutionary groups, and they said that people such as citizens should have a saying in their government for the person to have the legitimate power. To have the free and fair election in the democracy is to have the right support from those who thinks it more or less for the community. People think it's less free and fair on the Voter's I.D Law to those who have struggles with money with racial groups.…

    • 1007 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Currently, to elect a president we use the electoral college voting system. Throughout years of elections it has helped America choose the next president. “The Electoral College was established in Article II of the United States Constitution. Every state will get one vote for president for every representative that they send to the United States Congress.” (What is Electoral College?) The electoral votes is the 538 votes that determine who will be the next president. If the 538 votes were split evenly across the population of the US (roughly 318.9 million last counted in the year 2014) about every 574,000 people would be represented by one vote. However, the electoral college stops that by giving the votes towards not people but states. The…

    • 203 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Voting Controversy

    • 351 Words
    • 2 Pages

    I believe that this is a tough question to answer. I feel that this is one of those questions where I am able to see understand and level with both sides. In the end, however; I do believe that voting is a privilege. Although many people do not believe it and choose to argue otherwise; your vote DOES matter. I believe that by voting you are doing your duty as an American citizen. By being in prison, you are getting this voice you have taken away. This chance you have to help make the change you desire for your country is taken away. I do feel as if this is unfair, but at the same time I understand where some people can see that prisoners do not deserve to use their voice. If someone is to break the law, go against rules that our country made,…

    • 351 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Electoral College System

    • 1141 Words
    • 5 Pages

    In America, every four years there is a presidential election that gives Americans the right to vote. The United States is a role model to other countries of the concept of giving all citizens equal share in the government and the way it is run. The Electoral College ruins the voting and creates an unfair system that is not equal. It destroys the fundamental part of democracy that gives everyone the right to vote. The Electoral College raises the question "Is the United States a republic?". With the Electoral College, it is a winner take all system which makes some votes practically useless. The founding fathers believed that most people were uneducated and would make uninformed decisions and the way news travel has changed. With this system,…

    • 1141 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Format of database of a single pass macro processor (Data structures used by a single pass macro processor)…

    • 488 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Crystal Report with Image

    • 551 Words
    • 3 Pages

    Create a dataset using the fields you want to display in crystal report. Define the image field as hexaBinary datatype.…

    • 551 Words
    • 3 Pages
    Good Essays

Related Topics