D Dina01 Registered User. Local time Today, 00:54 Joined Apr 24, 2002 Messages 87 Jul 16, 2002 #1 I have a textbox named txtHrsDebut what I would like to do is add 30 minutes to that time and then save. Can anyone tell me how to do this....
I have a textbox named txtHrsDebut what I would like to do is add 30 minutes to that time and then save. Can anyone tell me how to do this....
S Shane_Mc Refulgent Sesquipedalian Local time Today, 00:54 Joined Jun 24, 2002 Messages 39 Jul 16, 2002 #2 Not quite sure. But there is a DateAdd function. The following line of code is used to get a date 7 days before the current date. DateAdd("y",-7,Date()) I presume you could try something similar using or search for the TimeAdd function (if there is one!)
Not quite sure. But there is a DateAdd function. The following line of code is used to get a date 7 days before the current date. DateAdd("y",-7,Date()) I presume you could try something similar using or search for the TimeAdd function (if there is one!)
D Dina01 Registered User. Local time Today, 00:54 Joined Apr 24, 2002 Messages 87 Jul 16, 2002 #3 This is my code, but it keeps on returning -1 If Me.description = "15 minutes" Then txtTime15 = DateAdd("m", 15, [HrsRecu]) Else txtTime30 = DateAdd("m", 30, [HrsRecu]) End If
This is my code, but it keeps on returning -1 If Me.description = "15 minutes" Then txtTime15 = DateAdd("m", 15, [HrsRecu]) Else txtTime30 = DateAdd("m", 30, [HrsRecu]) End If
D Dina01 Registered User. Local time Today, 00:54 Joined Apr 24, 2002 Messages 87 Jul 16, 2002 #4 Found Solution I was able to find the error, I just had to replace the m by n.. Thanks