Creating A VB Program For School To Collect Data On Student Attendance And Populate It To A Table?

Mar 27, 2012

We are creating a VB program for school to collect data on student attendance and populate it to a table. I have all of the 'GET' statements but am having trouble creating the 'Insert' procedure. This is what I have so far. The form being used to fill the table has 4 items being recorded. 'Present' radio button marked as present, tardy or absent; StudentId, PeriodId and date. Not sure if we are on the right track. The target table is tmAttendance. There are approximately 25 rows of data on the input form.

View 3 Replies


ADVERTISEMENT

Create Small Database Which Handles Student Attendance Record - Repeating The Data Again And Again ?

Feb 6, 2009

I want to create small database which handles Student Attendance Record it will store the roll calls of students on daily basis that teachers collect from the students in the class on paper and then later transfer it on computer .So my database Must contain Month, Year, Program (BCS, BIT, MS, MCS, MIT etc) Batch (1st, 2nd etc) and Subject (English, Math, Geography etc)

Suppose I want to Search for the Attendance Sheet of any month, year, Program, Batch or Subject, it returns me the required dataSo i come up with the Datadase which includes 5 dimension tables and one fact tableDimension Tables1. Student (StudentID, Name, other Attributes)2. Program (Program_Name, other Attributes)3. Date (Date, Week, Month, Year)4. Batch (Batch_Number, Description)5. Subject (Subject_Name, other Attributes)Fact TableAttendanceTable ( StudentID, Program, Date, Batch, Subject, Status)but the problem come when certain columns are repeating again and again which is time consuming for database operator and shows inconsistent behaviour of database.

Look at it: my Fact table would be like this [code]....

problems:1. The StudentId is repeating which shouldn't (Primary Key),2.It wastes a lot of time coz i'm repeating the data again and again Like Program, Date and Batch which shouldn't be in consistent Databases.

View 7 Replies

Collect All Parameters From Reports And Populate SQL Table

Apr 20, 2012

I have a table on my SQL DB call ReportList which is a list of report. I need to go through that list and interrogate the reportserver, eport by report, to populate a table called ReportParameters. The ReportParameters table has a column for ReportOwnerID which needs to contains the ReportID value of the corresponding (owner) report as listed in the ReportList table.

It needs to work so:- I have a listbox of the reports as per REportList and a GridView that list all the parameters (uniquely - most of the parameters are common to many reports) the idea being that the parameters get set once and the report can be kicked off by selecting them in the ReportList CheckListBox and clicking on Execute. I would like it that as I click on a particular report in the ListView, the relevant parameters in the Gridview get a green background and those that do not apply are red. The leftmost column in the gridview contains tha Parameter NAME (not editable) and the next column must be editable to populate the value.

Done so far: I have tried on clicking the Execute button, to build a parameters string in a testbox and call that with the Javascript OpenReportWin() function when I open the report in a new window. This works fine, but my biggest issue it interrogating the reportserver reports to get back a list of parameters and dooping them into a table. I have tried to use a hidden DataGrid bound to a ds onto the reportParamaters table.

I have tried to populate it using a datalist but I cannot get the hang of these thionsg and its looking messy. Their must be a simple clean way of getting the .GetParameters resultset back from the report server and populating the table without having to create a reportviewer object and cycling through the list of reports - it then has to render each report before you can get that list out.

View 1 Replies

DB/Reporting :: Collect Data From Table And Insert Into New Row

Jan 4, 2010

I have an access database with 3 tables, want to collect data from 2 and insert them into a new row in the third (although this seems redundant there are reasons for wanting it that way). I created a form and call the data from the two tables fine, once the form is filled I try to add a new row to the third but it will not add the row even though it is telling me that is has. When I open my access table the record is not there. I am new at this and just can't figure out why it won't work, I have tried several approaches the latest is

Code:
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Activate()
Dim IDNUM As String = InputBox("Enter Student ID Number")
'storing the text entered in a string
[Code] .....

View 2 Replies

Office Automation :: Populate Access Data Table To Data Grid?

Nov 11, 2010

The control comes up blank??Imports System.Data Imports System.Data.OleDb Public Class Form1

[Code]...

View 6 Replies

Forms :: Populate A Data Table With Some Data From Text File

Mar 29, 2010

Here is the code that I already have:

[Code]...

View 4 Replies

Populate Data Using Table Layout?

Apr 21, 2010

I want to be able to populating a data from my oracle database into vb.net

View 1 Replies

Add Student Average Information To Properties Of Student Records Created In Previous Sub Procedure?

Apr 19, 2010

I have created a class called Student, with five private variables: [code] My main form is divided into a number of different sub procedures. In one of them, I used a streamreader to take the first name, last name, and phone numbers of a list of records in a text file called PersonalInfo.txt. It seems to work just fine. [code] I have another, separate sub procedure in which I read a different text file containing the "averages" for the students. The first average from Averages.txt belongs with the first student in PersonalInfo.txt. The second average goes with the second student.. How do I add the student average information to the properties of the student records created in the previous sub procedure? [code] I realize why this wouldn't work, but I can't figure out how I could use my counter to reference a specific student.

View 4 Replies

ASAP VB 2010 - Randomly Select A Single Student Out Of The Student Array Based On Their Subscript Number

Mar 6, 2012

randomly select a single student out of the student array based on their subscript number. This will be accomplished by the following:

[Code]...

View 4 Replies

Populate A Data Object Containing 30+ Properties From A Database Table

Sep 21, 2010

I have a need to populate a data object containing 30+ properties from a database table. I could create a simple class containing a public variable for each of the required properties, but I don't want to.

Is the following code a bad idea:

<Serializable()>
Public Class DtoEmployee
Public EmployeeId As String

[Code].....

View 2 Replies

Populate A Text Box From Table Data On Dropbox Change?

Jun 10, 2011

I want to populate a text box from a stored table I have this for the data

With DropDownList1
.DataSource = ds.Tables("property")
.DisplayMember = "propRef"

[Code].....

View 2 Replies

Populate DataGridView Table With Data From An Access Database?

May 19, 2009

I have made DataGridView in the designers and connected an Access database to the datagridvies and the Column headers appear as they should and when I check in preview mode all the fields are correctly populated. However, the DataGrid is not populated in normal mode at all. I have been trying to run the project but nothing is happening. What can I do to populate the field.

View 12 Replies

Table In A HTML Report That Want To Populate With Data From A Database?

Sep 3, 2010

I have a table in a HTML report that I want to populate with data from a Database. The headings are Customer ID, Amount to Pay, Amount Paid, and Total Owing.I am running the SQL Query:

SELECT CustomerID, SUM(AmountToPay)" & vbCrLf & "FROM Orders" & vbCrLf & "WHERE CustomerID = 20202" & vbCrLf & "GROUP BY CustomerID" & vbCrLf & "UNION" & vbCrLf & "SELECT CustID, SUM(AmountPayed)" & vbCrLf & "FROM Payment" & vbCrLf & "WHERE CustID = 20202" & vbCrLf &

[code].....

View 3 Replies

Query - Table Of Student Information - Produce The Results ?

May 4, 2012

I have a table of student information. Each student has a contact date and a source of information.

I want to produce the results like this

CODE:

At the moment I am using this sql

CODE:

But my results are like this

CODE:

It is just putting the total not the seperate amounts.

View 1 Replies

Make A VB Program For A School Assignment?

May 20, 2011

I have to make a visual basic program for a school assignment. I am an absolute beginner at it though, but am willing to learn.I have to make an income calculator for farmers that make giant turnips.

So basically:

1. If the turnip weighs less than 350kg, the farmer will receive $2 per kilo
2. If the turnip weighs 390 or more, the farmer gets $1.50 per kilo MINUS $180 for a maintenance fee.
3. If the turnip weighs between 350 and 389kg, it has to be sent to a paddock that costs $25 per week for lease. Turnips loose 1% of their mass per week in this paddock. When the turnip gets below 350kg it can be exported. As ships depart weekly, turnips may drop a bit below 350Kg before departure.

Create a profit calculator for the turnip farmer for a list of cattle weights.

Functional Requirements: oEnter the weight of each cow into an array oCalculate the income from each cow and store in another array oAdd up the values in the array and display total income.

View 1 Replies

Creating A Table In A Data Base?

Mar 24, 2009

I'm creating a table with the CREATE statement and it is working fine, but I have to lopp thru one of the columns. I have a value on variable and I will have to create the column depending on the variable value. Here is my code. I need to loop thru the Rnd column renaming it like this

[code]....

View 2 Replies

Program Will Eventually Be Installed On The School System?

Mar 16, 2010

I am using Visual Basic 2008 express and I have created a simple database application for my y6 pupils. The program will eventually be installed on the school system but, i want to know how I can ask vb to find which folder the application was installed in and get it to return a string. Does anyone know how to do this??

View 5 Replies

Small Program To Change The School Wallpapers?

Sep 4, 2010

im new to these forums and was working on a small program to change the school wallpapers. i want the user to be able to choose the imageand not have to put it in a secific directory could anyone please advise me on how to do this

[Code]...

View 1 Replies

Develop A Program Which Input A Student Details?

Jul 14, 2011

am looking to develop a simple program which inputs a students details and prints to the output,

View 3 Replies

SQL Query Data Collect?

Nov 18, 2009

I have a SQL server table that has a list of Usernames and a list of points ranging from 1 to 10,000.I want to display the number of points in my VB.NET program from the username given. For example, if I type in "john" in the first box the program will give me a message box saying whatever amount of points "john" has. I'm not really sure about

This is the Table Structure:
Usernames Points
-----------------------------

[code].....

View 1 Replies

Creating A Condition - IF Statement Which Is Checking Each Row In The Data Table

May 4, 2011

I have a IF statement which is checking each row in the data table (for a match) and ELSE statement with commands which are executed if the If statement is not satisfied. Now I would like to write like so that it goes to the Else part BUT ONLY for values which are not satisfied in the IF statement. If I am more specific; I would like to calculate values if a match is found and just print them if it is not fond (usually there are both cases). Now the problem is the bold text; if there is a match found I don't want it processed BUT if the match is found I do. How can I write that?

currencyPosition = 0
Dim d As Integer = w + 100
For Each currency In Ary

[CODE]..........................

View 2 Replies

Data Entry Screen To Collect Data

May 27, 2009

I have a data entry screen to collect data. At the bottom of the form I have buttons to add a new record, save current and add, save current and end, and an end without saving. The buttons all function properly. After clicking the save current and add new record button, a new blank record comes up with the cursor on the save current and add button. I haven't been able to figure out how reset the tab order so the first field in the entry screen is ready for data. I'm coming up empy on my research.

View 2 Replies

VS 2008 : Make A Program For School That Closes The Active Window?

May 30, 2010

I need to make a program for school that closes the active window. My application does now SendKeys.Send("%{F4}"). It works but, it also does it when there are no active windows. I want it to close only the active windows.

View 6 Replies

Collect All Data From Db To Show In Textbox?

Jun 12, 2010

I have 4 textboxs in my new form. and each of them, i want the data from the db show in the txtbox.[code]...

View 1 Replies

Collect Two Sets Of Data From Two Different Databases

Feb 5, 2009

I collect two sets of data from two different databases, This data is now in two collections. I then join/append the one collection to the other and then put it in to a list view.I really would like to order this list view by the first column without the click event.To make this even harder the First column contains Data that is DateTime and i have found that it orders the items by the day number and not the months or years or time.I have found one way but it then cause's me further agony when doing some checks upon the data within the listview later in my code. This answer is to rearrange the format to "yyyy-MM-dd HH:mm:SS" then using the listview.sorting = sortorder.

View 7 Replies

Create An Application That Collect Data From The Rs-232?

Mar 11, 2010

i want to create an application that collect data from the rs-232.Someone have a code example with multi rs-232 in thread .I have one pc that have mapping virtual com.

View 1 Replies

Collect Data From CSV Files And Paste It In One Xls File?

May 10, 2012

I get a problem with my program. My program should do :

-Explore folders from a main folder (LOGS)

-See if there are csv files

-Copy the data from CSV (all informations are on the first column)

-Paste it in one xls file (with a sheet for every csv)[code]...

View 2 Replies

DataGridView, Set Up Columns, Populate Data Table, Bind, But Not Using Columns Created In Code?

Oct 26, 2011

I'm using VB.net 2005. I have working programs that I populate DataGridViews with something like the following:

[Code]...

View 6 Replies

Dynamically Generate Textbox And Collect Data Entered By User?

Nov 5, 2011

We use a database to create Data Collection forms with dynamic items

I used this code to generate labels and textboxes from a table in database (when the user hits the button "load CRF")

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click[code]...

View 4 Replies

Multi-Threading - Collect Data Simultaneously From 4-6 Sites At A Time?

May 4, 2011

I have just written an app in VB 2010 with .NET 4.0 that contacts our field loggers to collect data via modem or IP. Originally it was written without threading, but now the requirements have changed and I need to collect data simultaneously from 4-6 sites at a time. I have never used threading, TPL, etc. Can anybody tell me where to begin so that I can concurrently run multiple collections?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved