how to grab data from access and manipulate it

Reply

Join Date: Mar 2008
Posts: 1
Reputation: diyanajaafar is an unknown quantity at this point 
Solved Threads: 0
diyanajaafar diyanajaafar is offline Offline
Newbie Poster

how to grab data from access and manipulate it

 
0
  #1
Mar 13th, 2008
hello,
Im doing a system to calculate student attendance to class. Now i'm having problems to grab a data from Access, use it as a value in VB calculation. Then, how to send the answer of the calculation to another [FieldName] as an updated data in Access.

the formula of calculation is:

% attendance = [ (total attendance/28) x 100% ]

for your information,

total attendance is the data to be grabbed from Access

Your kindly respond is most appreciated.TQ
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,086
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 125
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: how to grab data from access and manipulate it

 
0
  #2
Mar 13th, 2008
Have you connected to database and fetched the total attendance from database table ?
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 122
Reputation: cometburn is an unknown quantity at this point 
Solved Threads: 19
cometburn's Avatar
cometburn cometburn is offline Offline
Junior Poster

Re: how to grab data from access and manipulate it

 
0
  #3
Mar 13th, 2008
You must get the total of the number of times the student attended the class. Which is from the database. Next, after getting the Total, you can now use your formula:

((total attendance/total class days) x 100%

Now, the only problem you have are:
1. How are you gonna get the Total Attendance?
2. How are you gonna save total attendance on the database?

go here for connection strings.

Correct me if im wrong with the analysis.
Proud to be Philippine made...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC