o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

easy solution for adding and subtracting time -

I have two combo boxes. In each combo box the user can select a time. It basically is for a user to select what time he wants to run a certain train pattern. So lets say in the one combo box, he selects 8:00 and in the next he selects 12:00. What i need to do is find the difference and display how many hours the pattern is run. In this case it is 4 hours if it is 8:00 AM to 12:00PM and 16 hours if it is 8:00 AM to 12:00 AM. You see the mess you can get into. But, does vb have some time format that would make this easy to do, that would automatically do time subtraction and addition. Any suggestions would be greatly appreciated.

Thanks,

Jeff

 

Adding or subtracting time -
I need to calculate time differences in a database through code. What is the format for subtracting or adding time in VB?


easy solution for adding and subtracting time -
I have two combo boxes. In each combo box the user can select a time. It basically is for a user to select what time he wants to run a certain train pattern. So lets say in the one combo box, he selects 8:00 and in the next he selects 12:00. What i need to do is find the difference


Adding or Subtracting Percentage -
hi all I'm having trouble adding or subtracting percentage from a value in my textbox. If my value = 1442 and i add 5% to it i get 1514.1


Adding/subtracting Binary -
I have converted 2 numbers to the binary form and stored them in arrays a[9] and b[9] Please could someone give the codes for adding them and subtracting them.Please also give for converting answer back to decimal THANX IN ADVANCE


Avoid Postback for Link Button -
I’m using V Studio 2005 , VB, on an aspx page. I have a text box on a web page that displays a complete date time value (07/19/2007 10:15 AM). The user will be allowed to change the time but not the date. I have used 2 link buttons; one for adding minutes and one for subtract


Understanding codes -
Visual Basic. Net I am very new to the programming thing and visual basic is hard for me. My question is when putting code in for like adding and Subtracting is it a certain way it should be put in. I have beening trying to this code and it keeps telling me I have the wrong code. I


Subtracting and adding Time -
I have setup a form to input a start time and finish time, but I need the values to remain in that format as supposed to 16:45 = 16:75. Could anyone please please tell me how I would subtract, for example, 08:45 from 16:15 to make 07:30!! Read it a few times and you'll see what I mea


Subtracting a time interval from a date time value (RESOLVED) -
I know I am asking something really silly, but I have not got my thinking cap on this issue yet, since there are heavier ones I am preoccupied with, and at these times, the lighter ones slip your mind. I need to subtract a time interval from a date and get the resultant date time .


Converting UTC to Correct Time Zone -
Is there any way to convert a UTC time into the time zone that the user has selected for their computer? 09/16/00 3:36:59 AM UTC This would require somehow finding what the current time zone settings are and then adding or subtracting so many hours. Any ideas?


Finding 1 month back from sysdate -
Hello I am searching for a function or solution which gives date of exact 1 month back from sysdate. It seems easy but, I afraid that it will create great problem if I do normal coding like just subtracting 1 from month value. Please help. Best Regards Mahesh


adding or subtracting one -
what command would usually be used to add or sub JUST ONE off of a number?


adding + subtracting values (simple question) -
thanks


[2.0] have a number loop instead of overflow -
Well Sometimes I have a number that causes the integer to overflow when adding. Now is there a way that instead of overflowing it resets to 0 and continues adding? I was thinking making it a int64 and if it is bigger then an int subtracting an int but is there another easier way?


Calculator. -
i want to make a calculator using one text box, and i need help like storing the first number and then adding.subtracting.multiply,dividing the second one. also i need to know how to make the command buttons enter a number one after another with out changing the first just adding to th


Subtracting time -
Hi, I'm new to VB--I would like to know how to subtract between time periods i.e. In 8:35am Out 11:40am and I would have to do this for at least 5 different times in one day (Employee Time Sheet). Any help would be greatly appreciated thanks, JT


Moving pictures/icons -
I'm brand new to VB and only a novice at programming. I'm trying to move pictures/images using the object.Move command but the object is placed with the top left hand corner at the x,y coord Is there some easy way to put the centre of the object on this position (without having to


Problems visualing the stack in MIPS32! -
Hello everyone i'm having problems visualing this stack. I'm use to a stack that grows upward, First one in, last one out. But its the opposite in this case, the stack grows downward, not upward. We have the following code: int leaf_example (int g, int h, int i , int j) { i


A better way to figure total time worked by subtracting 2 date values -
Currently, this is what I'm using to figure out time card values. If Val(dteDate1) < 10 Then dblTotal = dblTotal + (Val(dteDate1) + (Mid(dteDate1, 3, 2) / 60)) Else dblTotal = dblTotal + (Val(dteDate1) + (Mid(dteDate1, 4, 2) / 60)) End If This works fine except for when th


Hai Please Help Me -
Hi Everyone I am new to vb Can anyone Suggest me a good site to learn Vb from the starting and Book alsoo and small programs like adding of two numbers and subtracting of two numbers Thanking You Sir Haris


Smart Calculator -
I want to make a calculator that works like this: Lets say you have a text box, and you type something like this into it: "100+100/2" How could i have the program scan through this text box and add up the two 100's and divided the result by 2 and maybe add that result


check for 4 in a row -
hi all, i am making a 4 in row game and need help with checking the places for 4 in a row...I have a control array numbered 0 to 41 and I know I need to loop thro this. So assuming that I have my starting square how can I check all my posibles...The way I was doing it was adding and


Adding subtracting time values -
This has been bugging me and I can't figure it out. I use DTpicker to allow users to pick start and end times for a work shift (3 shifts a day). There is also a combobox which allows for the seelction of 0,.25,.5.,.75,1 for lunch deduction I want to figure the time between the


[2005] Adding Documentation To Solution -
I have a set of user requirements in the form of a Word document. Should I just place this in the solution directory and add it to the solution with 'Add Existing Item' or is there a proper way to add documentation to your project?


Postfix Notation Anyone -
does any one know about Postfix Notation and how it can be made into a vb program for like adding numbers and subtracting, multipling, dividing etc...


Subtracting 2 Time Values -
How can one subtract two times (e.g., one the current time, and one preset time) so as to find the difference between those times in terms of hours/minutes/seconds... I am new to programming...excuse the idiocy of this question, as I am sure the result is extremely simple. Thanks


Adding to net time -
ok I'm new to VB... so go easy I have a wee prog that grabs the time from an NTP server via winsock. This info is passed to a textbox. I'm looking to keep the time in this box ticking over. It would be stupid to keep querying the NTP every second so I need some way of co


Subtracting Records -
I have an Access database that has a field called Time that shows the time in the hh:mm:ss format. I have populated the database in VB. I would like to know how I can take one time in the record and subtract it from the next? Sample: Date Time Nam


[2008] Reference other projects from same solution -
How may I use the features of a project from another project within the same solution? Suppose I want to write the core of the application in C#, and I wrote the interface in VB. Now, after adding the core project to the solution containing the interface project, how may I access the c


Creating rules for adding/subtracting 2 structures -
Ok, I have a structure Public Structure someStructure Dim settingName As String Dim settingValue As Integer End Structure Dim T1 as someStructure Dim T2 as someStructure now i want to call T1+T2 and obviously only add up the settingValue par


Subtracting time in Access -
I have an Access 97 database and I want a query that can subtract time (end_time - begin_time = minutes). Does anybody know how to do it? Cheerz


Forums Messed Up... -
I live on the east cost USA... so I set the time accordingly in options which is GMT - 5 hours... but the forum was subtracting 10 hours.. which i think has to do with the posts being all messed up... When I set it to GMT time it displays the right time... just posting this here


What's The Best Way To Connect To Access -
Hi I've got a basic Access 2000 database. I want to have a VB form which shows one record in the database at a time. I'm very confused in what would be the best way to accomplish this. ADO, adodc, DAO. I've tried this with adding a refernce to ActiveX Data Objects 2.7 and addi


Subtracting a percentage -
Well, I know this may be kind of easy, but since Im still in the beggining stages of math (8th), and I can't really get a clear idea on how to go about it, I need a little help. Anyways, basicly I just am thinking on how to subtract a percent of a number from something. That may hav


Adding units of time -
Is there an easy way to add units of time, when the total exceeds 24hrs? Hrs:mins 9:36 7:13 9:00 8:07 8:22 ------- 40:32


Printing information -
I'm using msAccess and vbsp5 (as the components to my Application). Problem: I have a table that changes all the time on the fly (adding fields, and subtracting fields, because of this it makes it next to impossible to print this information in entirity to the datareport), and I ju


Subtracting Time fields -
In my Access 2K report, I have 2 time values Morning out Time Morning In Time I have a field where I want to subtract morning in time from the morning out time. This is what I'm using. =Val([Morning out Time])-Val([Morning In Time]) The values are 12:30 - 8:00 The value


Report Designer (using ADO, creating at run-time) -
Does any one know if it's possible to use the VB6 Data reporter with the ADO control (I'd prefer not to use the data designer). I'd like to be able to change the queries that are being reported on during run time, but have not found a way to do this with the VB reporter. It seems like


hex math -
I need to find some material on math in hex (i.e. adding, subtracting, mult, div, exponents)...google and yahoo haven't turned up anything useful at all. Wolfram doesn't seem to have anythng. Does anyone know of any useful sites?


How to update joined table -
I have two tables, one called jobs and one called files. They are joined by JobID with a one-to-many relationship (one job can have many files) Im using asp and ADO and I am a bit unsure if I have done the design as good as it can be... In the table "jobs" I have the JobID a


subtracting time -
how do you subtract time from yesterday to today? example is 10:13 pm of january 1 and 01:12 am of january 2