06-25-2014 11:53 AM
Of course the borrow date will vary between students. But why should that cause a problem for you?
You have basic information on each student. You have a date of when they borrowed it. You have a date as to when it is due back. You have a date as to when they returned it, which might also be empty in the event they have yet to return it.
What are you statuses you want and what conditions meet those status? Out, Returned, Overdue, ???
All you need to do is come up a with a basic flowchart that you work through to compare the current date with those dates that you know and determine what the status should be. It is also basic programming concepts.
06-25-2014 11:57 AM
yes sir this is exactly what i want
But the status should be automatic not written manually.
the print screen i did that manually
The simple coding i was trying to make the 7 days into sec and the if it is greater then the status will be either Pending or okay
This is what i dont know what i should do.
simple coding meaning
06-25-2014 11:59 AM
the flow chart, i did put in my documentation..
If the student didnt return on due date- the status will be pending ( and also a notif will pop out displaying check detail of student)
if the student return on time- the status will be Ok.
Meaning i have only 2 cases which are pending and ok
06-25-2014 12:15 PM
As far as I can tell, it's a tab-delimited file?
06-25-2014 12:23 PM
06-25-2014 12:28 PM
@Zahkay wrote:
I didnt get what you mean sir
The file you are using is not actually an Excel file, Its a Tab-delimited file. Since you are using Excel application to open it, you are calling it as Excel file.
06-25-2014 12:43 PM
06-25-2014 01:02 PM
You may also want to read up on database design. Particularly, the differences between tables and reports.
A table consists of specific data. Items that are constants that never change, and items that change infrequently, or as a result of specific actions belong in a table. Information that you want to look at that maybe continually changing, or are only valid at a particular snapshot of time belong in a report.
For instance. A database table might have information like a person's name, identification number, and birthdate. You wouldn't put something like their age in there. It is constantly changing, it is transient information. If you want to see a list of people and their ages, then you would create a report. A snapshot at that instant of time that can technically become stale the moment after you create it. The report would be a list of names queried from the table, and the corresponding age at that specific moment which is calculated as a function of the current date and a queryfrom the table of their birthdate.
06-25-2014 03:20 PM
Yeah maam, i do have more codes. but i am not able to upload by whole VI here accompanied with the other sub Vi that is needed to operate. The code is enclose into a while loop which i didnt snapshot. a button for checkout. But the date the student is coming to borrow the equipment is always changing.I did this technique like previously being told in the previous discussion
but it does not work for overall but only for one student.
I didnt get you for the modification . The flow chart about programming all of those is in my documentation maam..Is there a sample of VI i can implement.
06-25-2014 05:07 PM