473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Check for existing date

266 256MB
Hi everyone,

I have created a database for employees to sign it and out. The functionality has been working great but I am running into an issue of people forgetting if the signed in or not; therefore they will sign in or out twice.

The way it is formatted is every employees name is show on a form with a sign in and sign out button under their name. When they click sign in, it it fills in a field called date1 with the current date, it also fills in a field called signindate with the current date, it also fills in the current time in a field signintime. When they click sign out, it fills in a field called signouttime.

Could someone help me with the code to disable the button for signing in until the following day or popup a msgbox if the current date is already in the database for their name; for example they already signed in. I've tried a few things but am still struggling, thanks for the help!
Mar 22 '18
93 4001
twinnyfo
3,653 Expert Mod 2GB
Post #48, Line 49 should be:
Expand|Select|Wrap|Line Numbers
  1. Me.Filter = "Employee = 0"
I forgot to make that change.

Also, lines 25 and 30 should reference the Field [Employee2] (see Post #39).

Put a break point at the MsgBox in the EH. When it gets there, type ?Err.Description in the Immediate Window. Cut and paste the error.
Mar 29 '18 #51
twinnyfo
3,653 Expert Mod 2GB
And.... my thought is that we are trying to set a boolean variable as a date.... If we were setting it as a number, we would be OK. But that is a minor problem.

If your tbl_master also has a primary key (an ID field), we can change the DLookup() to this:

Expand|Select|Wrap|Line Numbers
  1.     fCheckIn = Nz(DLookup("[ID]", "tbl_Master", _
  2.         "[Employee2] = " & Employee & " " & _
  3.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  4.         Format(Date, "yyyy-mm-dd") & "'"), False)
  5.  
  6.     fCheckOut = Nz(DLookup("[ID]", "tbl_Master", _
  7.         "[Employee2] = " & Employee & " " & _
  8.         "AND Format([SignOut], 'yyyy-mm-dd') = '" & _
  9.         Format(Date, "yyyy-mm-dd") & "'"), False)
Also noticed in post #48: Line 58 should be line 51 - you should not have that statement in the EH, but in the main sub.
Mar 29 '18 #52
didacticone
266 256MB
Put a break point at the MsgBox in the EH. When it gets there, type ?Err.Description in the Immediate Window. Cut and paste the error.

Not sure what you want me to do here.
Mar 29 '18 #53
twinnyfo
3,653 Expert Mod 2GB
You achieved the same by putting the Err.Description in the MsgBox.

These other changes need to be made to fix any additional problems.
Mar 29 '18 #54
didacticone
266 256MB
Sorry misunderstood.

"Data type mismatch in criteria expression"
Mar 29 '18 #55
didacticone
266 256MB
Here is the entire code, with the new changes:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3. Dim fCheckIn  As Boolean
  4. Dim fCheckOut As Boolean
  5. Private Sub CheckStatus()
  6. On Error GoTo EH
  7.  
  8.     CheckEmployee 1
  9.     CheckEmployee 2
  10.     CheckEmployee 3
  11.     CheckEmployee 4
  12.  
  13.     Exit Sub
  14. EH:
  15.     MsgBox "There was an error checking the status!  " & _
  16.         "Please contact your Database Administrator.", _
  17.         vbCritical, "WARNING!"
  18.     Exit Sub
  19.  
  20. End Sub
  21. Private Function CheckEmployee(Employee As Integer)
  22. On Error GoTo EH
  23.  
  24.    fCheckIn = Nz(DLookup("[ID]", "tbl_Master", _
  25.         "[Employee2] = " & Employee & " " & _
  26.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  27.         Format(Date, "yyyy-mm-dd") & "'"), False)
  28.  
  29.     fCheckOut = Nz(DLookup("[ID]", "tbl_Master", _
  30.         "[Employee2] = " & Employee & " " & _
  31.         "AND Format([SignOut], 'yyyy-mm-dd') = '" & _
  32.         Format(Date, "yyyy-mm-dd") & "'"), False)
  33.  
  34.     Me("cmdSignIn" & Employee).Enabled = Not fCheckIn
  35.     Me("cmdSignOut" & Employee).Enabled = Not fCheckOut
  36.  
  37.     Exit Function
  38. EH:
  39.     MsgBox "There was an error with the search!  " & vbCrLf & vbCrLf & _
  40.         Err.Description & vbCrLf & vbCrLf & _
  41.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  42.  
  43.     Exit Function
  44. End Function
  45.  
  46.  
  47. Private Sub Form_Open(Cancel As Integer)
  48. On Error GoTo EH
  49.  
  50.     Me.Filter = "Employee = 0"
  51.     Me.FilterOn = True
  52. CheckStatus
  53.     Exit Sub
  54. EH:
  55.     MsgBox "There was an error with the search!  " & vbCrLf & vbCrLf & _
  56.         Err.Description & vbCrLf & vbCrLf & _
  57.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  58.     Exit Sub
  59.  
  60. End Sub
Mar 29 '18 #56
twinnyfo
3,653 Expert Mod 2GB
Make the changes I've identified and these errors should go away.
Mar 29 '18 #57
twinnyfo
3,653 Expert Mod 2GB
And does this form work yet? Any additional errors?
Mar 29 '18 #58
didacticone
266 256MB
"Data type mismatch in criteria expression" on form open
Mar 29 '18 #59
twinnyfo
3,653 Expert Mod 2GB
Which line is causing the error? Everything looks fine to me.
Mar 29 '18 #60
didacticone
266 256MB
It doesnt get to CheckStatus, it goes through both filters then right to the error message
Mar 29 '18 #61
twinnyfo
3,653 Expert Mod 2GB
Change line 39 above to:

Expand|Select|Wrap|Line Numbers
  1. MsgBox "There was an error checking the employee!  " & vbCrLf & vbCrLf & _
And change line 55 to:

Expand|Select|Wrap|Line Numbers
  1. MsgBox "There was an error opening the Form!  " & vbCrLf & vbCrLf & _
This will more easily tell you where your code is breaking
Mar 29 '18 #62
didacticone
266 256MB
Same error in the same place
Mar 29 '18 #63
twinnyfo
3,653 Expert Mod 2GB
OK - So, I know some of this is my fault and has to do with me not having your DB right in front of my face so I can't actually walk through every step of this code and I also know that some of this is because we were using your old paradigm of different data types in your table than what we changed things to, but there is also a certain degree of troubleshooting that just takes a look at things and realizes that when we change ONE reference from Employee to Employee2, that should apply to every reference to Employee throughout the Code, because we are referring to different fields, get it?

Yet another reference to the Field Employee that needs to be Employee2.
Mar 29 '18 #64
didacticone
266 256MB
Gotcha... i should have seen that it is now:
Expand|Select|Wrap|Line Numbers
  1.  Me.Filter = "Employee2 = 0"
... when i change it i now get the error:

"the multi valued field "Employee2" cannot be used in a where or having clause."
Mar 29 '18 #65
twinnyfo
3,653 Expert Mod 2GB
the multi valued field "Employee2"
Trying to be as nice as possible here. This is a long thread...

Please re-read Post #39 very carefully:
Make sure the "Allow Multiple Values" check box is unchecked. Click "Finish".
Mar 29 '18 #66
didacticone
266 256MB
thats on me misreading that... sorry... i think im there now... i will try it out this weekend and post back on Monday... thank you for all of your help and info! Have a great weekend!
Mar 29 '18 #67
twinnyfo
3,653 Expert Mod 2GB
I hope this is getting to the point where it works. More importantly, I hope that when it works, you can look at the code we have done and the changes we made to your table and understand what we have done and why it works together.

Enjoy your weekend, too!
Mar 29 '18 #68
didacticone
266 256MB
Thats the plan... you have given me a ton of reference material which is great. thank you once again.
Mar 29 '18 #69
didacticone
266 256MB
Hey... hope you had a good weekend... just wanted to show you what i've come up with:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3. Dim fCheckIn  As Boolean
  4. Dim fCheckOut As Boolean
  5.  
  6. Private Sub CheckStatus()
  7. On Error GoTo EH
  8.  
  9.     CheckEmployee 1
  10.     CheckEmployee 2
  11.     CheckEmployee 3
  12.     CheckEmployee 4
  13.  
  14.     Exit Sub
  15. EH:
  16.     MsgBox "There was an error checking the status!  " & _
  17.         "Please contact your Database Administrator.", _
  18.         vbCritical, "WARNING!"
  19.     Exit Sub
  20.  
  21. End Sub
  22.  
  23. Private Function CheckEmployee(Employee As Integer)
  24. On Error GoTo EH
  25.  
  26.    fCheckIn = Nz(DLookup("[ID]", "tbl_Master", _
  27.         "[Employee] = " & Employee & " " & _
  28.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  29.         Format(Date, "yyyy-mm-dd") & "'"), False)
  30.  
  31.     fCheckOut = Nz(DLookup("[ID]", "tbl_Master", _
  32.         "[Employee] = " & Employee & " " & _
  33.         "AND Format([SignOut], 'yyyy-mm-dd') = '" & _
  34.         Format(Date, "yyyy-mm-dd") & "'"), False)
  35.  
  36.     Me("cmdSignIn" & Employee).Enabled = Not fCheckIn
  37.     Me("cmdSignOut" & Employee).Enabled = Not fCheckOut
  38.  
  39.  
  40.     Exit Function
  41. EH:
  42.     MsgBox "There was an error checking the employee!  " & vbCrLf & vbCrLf & _
  43.         Err.Description & vbCrLf & vbCrLf & _
  44.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  45.  
  46.     Exit Function
  47. End Function
  48.  
  49.  
  50. Private Sub cmdSignIn1_Click()
  51. Me.Employee = 1
  52. Me.signin = Now
  53. Me.Refresh
  54. End Sub
  55.  
  56. Private Sub cmdSignIn2_Click()
  57. Me.Employee = 2
  58. Me.signin = Now
  59. End Sub
  60.  
  61. Private Sub cmdSignIn3_Click()
  62. Me.Employee = 3
  63. Me.signin = Now
  64. Me.Refresh
  65. End Sub
  66.  
  67. Private Sub cmdSignIn4_Click()
  68. Me.Employee = 4
  69. Me.signin = Now
  70. Me.Refresh
  71. End Sub
  72.  
  73.  
  74.  
  75. Private Sub Form_AfterUpdate()
  76. Me.Command16.SetFocus
  77. Me.Requery
  78. CheckStatus
  79. End Sub
  80.  
  81. Private Sub Form_Open(Cancel As Integer)
  82. Me.Command16.SetFocus
  83. On Error GoTo EH
  84.  
  85.     Me.Filter = "Employee = 0"
  86.     Me.FilterOn = True
  87.     Me.Command16.SetFocus
  88. CheckStatus
  89.     Exit Sub
  90. EH:
  91.     MsgBox "There was an error opening the Form!  " & vbCrLf & vbCrLf & _
  92.         Err.Description & vbCrLf & vbCrLf & _
  93.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  94.     Exit Sub
  95.  
  96. End Sub
  97.  
I used the afterupdate event of the form, and also set the focus to a transparent control button because it wouldnt let me disable a button on click because it had the focus. It seems to be working but as we know and i have learned that doesnt always mean it is correct... do you have any critiques? Thanks as always!
Apr 2 '18 #70
twinnyfo
3,653 Expert Mod 2GB
Well done, Young Jedi!

First, you have looked forward, which is good, but remember that at this point, we were only checking to see if the enable/disable code was going to work.

So, some guidance (rather than critique): Rather than creating a useless invisible control, why not simply set the focus on the Close button (which you should have one instead of using the "Close button" at the top right of the Form). I always use a close button and disable the form's built in close buttons, because that way I can control what happens when someone wants to close the form. This is just a good habit to get into.

On another positive note, your decision to have a procedure in the AfterUpdate makes sense. However, I will show you that this is not necessary.

Also, you may notice that the code you have for each of the Sign-In buttons is nearly identical. This is a hint. When it is that similar, there are ways to streamline this into one procedure. I can show you shortly.

My main concern at this point is very simple: using sample data, do your sign in/out buttons properly enable/disable as desired? This is our starting place. Remember, one step at a time.....
Apr 2 '18 #71
didacticone
266 256MB
The close button is a great idea. I will create that and set the focus there.

The procedures are still something I struggle with, i just go longhand so to speak on everything. I look forward to seeing this in action though.

Also, with the code I have, yes the buttons enable and disable correctly for when the form opens and when i click sign in and the data logs correctly.

I think one of my next steps and thoughts (and not trying to get ahead of myself, just thinking) is getting the sign out button to look for an existing record and add the sign off data there rather than create a new record. Perhaps a procedure as well?
Apr 2 '18 #72
twinnyfo
3,653 Expert Mod 2GB
You are thinking rightly.... We will get there. Let me know when all things are set to move forward.
Apr 2 '18 #73
didacticone
266 256MB
So i have added the close button. and set the coding correctly.
Apr 2 '18 #74
didacticone
266 256MB
Here is the code:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3. Dim fCheckIn  As Boolean
  4. Dim fCheckOut As Boolean
  5. Private Sub CheckStatus()
  6. On Error GoTo EH
  7.  
  8.     CheckEmployee 1
  9.     CheckEmployee 2
  10.     CheckEmployee 3
  11.     CheckEmployee 4
  12.  
  13.     Exit Sub
  14. EH:
  15.     MsgBox "There was an error checking the status!  " & _
  16.         "Please contact your Database Administrator.", _
  17.         vbCritical, "WARNING!"
  18.     Exit Sub
  19.  
  20. End Sub
  21. Private Function CheckEmployee(Employee As Integer)
  22. On Error GoTo EH
  23.  Me.cmdCloseForm.SetFocus
  24.    fCheckIn = Nz(DLookup("[ID]", "tbl_Master", _
  25.         "[Employee] = " & Employee & " " & _
  26.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  27.         Format(Date, "yyyy-mm-dd") & "'"), False)
  28.  
  29.     fCheckOut = Nz(DLookup("[ID]", "tbl_Master", _
  30.         "[Employee] = " & Employee & " " & _
  31.         "AND Format([SignOut], 'yyyy-mm-dd') = '" & _
  32.         Format(Date, "yyyy-mm-dd") & "'"), False)
  33.  
  34.     Me("cmdSignIn" & Employee).Enabled = Not fCheckIn
  35.     Me("cmdSignOut" & Employee).Enabled = Not fCheckOut
  36.  
  37.  
  38.     Exit Function
  39. EH:
  40.     MsgBox "There was an error checking the employee!  " & vbCrLf & vbCrLf & _
  41.         Err.Description & vbCrLf & vbCrLf & _
  42.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  43.  
  44.     Exit Function
  45. End Function
  46.  
  47.  
  48. Private Sub cmdSignIn1_Click()
  49. Me.Employee = 1
  50. Me.signin = Now
  51. Me.Refresh
  52. End Sub
  53.  
  54. Private Sub cmdSignIn2_Click()
  55. Me.Employee = 2
  56. Me.signin = Now
  57. Me.Refresh
  58. End Sub
  59.  
  60. Private Sub cmdSignIn3_Click()
  61. Me.Employee = 3
  62. Me.signin = Now
  63. Me.Refresh
  64.  
  65. End Sub
  66.  
  67. Private Sub cmdSignIn4_Click()
  68. Me.Employee = 4
  69. Me.signin = Now
  70. Me.Refresh
  71. End Sub
  72.  
  73. Private Sub Form_AfterUpdate()
  74. Me.cmdCloseForm.SetFocus
  75. Me.Requery
  76. CheckStatus
  77. End Sub
  78.  
  79. Private Sub Form_Open(Cancel As Integer)
  80. Me.weekday = Format(Me.date1, "dddd")
  81. Me.cmdCloseForm.SetFocus
  82. On Error GoTo EH
  83.  
  84.     Me.Filter = "Employee = 0"
  85.     Me.FilterOn = True
  86.     Me.cmdCloseForm.setfocus
  87. CheckStatus
  88.     Exit Sub
  89. EH:
  90.     MsgBox "There was an error opening the Form!  " & vbCrLf & vbCrLf & _
  91.         Err.Description & vbCrLf & vbCrLf & _
  92.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  93.     Exit Sub
  94.  
  95. End Sub
  96.  
Apr 2 '18 #75
twinnyfo
3,653 Expert Mod 2GB
So, now that the enable/disable works, let's think about what your sign in procedure should look like.

If you think about it, if the sign in button is enabled, it means the DB did not find a record for that employee for today, correct? So, when we click that sign in button, we know if we filter by the employee and today's date, no record will be returned, but if Allow Additions is set to true (which it should be by default), then, your form is actually showing a NEW record.

Looking at the basics of your SignIn procedures, you have the basics correct. However, the procedures are redundant, in that they repeat certain steps and the only thing that changes is the employee ID. Understand?

So, rather than create four similar procedures, create one prcedure that uses the information you need better. Your procedure will look like this:

Expand|Select|Wrap|Line Numbers
  1. Private Function CheckIn(Employee as Integer)
  2. On Error GoTo EH
  3.     Dim strFilter As String
  4.  
  5.     'Filter by this employee
  6.     strFilter = "[Employee] = " & Employee & " " & _
  7.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  8.         Format(Date, "yyyy-mm-dd") & "'"
  9.     Me.Filter = strFilter
  10.     Me.FilterOn = True
  11.     Me.Employee = 4
  12.     Me.SignIn = Now
  13.     Me.Refresh
  14.     CheckStatus
  15.  
  16.     Exit Function
  17. EH:
  18.     MsgBox "There was an error checking the Employee in!" & vbCrLf & vbCrLf & _
  19.         Err.Description & vbCrLf & vbCrLf & _
  20.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  21.     Exit Function
  22. End Function
Now, rather than having a procedure for each check in button, set the OnClick value for each of your command buttons to: =CheckIn(1) (the number will be the actual employee ID.

Hopefully now, you can see why your AfterUpdate procedure is now obsolete.

Let me know how this works. I kept Line 6 with the Field "Employee" because I assume that is the code you are using and you said it works.

Thoughts for the future. If this is the case for signing in, what would it look like for signing out? There is an easy way to check for a Full day, as well....
Apr 2 '18 #76
didacticone
266 256MB
OK, it works but only for employee whose index is 4
Apr 2 '18 #77
didacticone
266 256MB
Also I have tried various things for signing out... i tried to you docmdgotorecord, i tried dlookup but cant seem to figure out how to get it to go to the record based on the date. it just keeps adding a new record. its so frustrating!
Apr 2 '18 #78
twinnyfo
3,653 Expert Mod 2GB
I also just realized something important. In your Code Block from Post #75, Line 35 should be:

Expand|Select|Wrap|Line Numbers
  1. Me("cmdSignOut" & Employee).Enabled = fCheckIn And Not fCheckOut
Do you understand why? We only want people to be able to sign out after they have already signed in. So, this is what it will look like. If the employee has not signe din, the Sign In button will be enabled and the sign out button disabled. After they sign in, they sign in button is disabled and the sign out button is enabled. After they sign out, both buttons will be disabled.

Hope this makes sense. We just want to prevent users from being able to enter wrong information at all costs.
Apr 2 '18 #79
twinnyfo
3,653 Expert Mod 2GB
Concerning Post #77, I made a mistake in my code. I want you to trouble shoot my mistake, because it should be obvoius from the results of your post. The solution is obvious (I hope), but this will help you look at your code to see where things are going wrong.
Apr 2 '18 #80
didacticone
266 256MB
im assuming its line 11,

Expand|Select|Wrap|Line Numbers
  1. Me.Employee = 4
That should not be 4, it should be a reference to something? The id? I was thinking that but couldnt quite figure it out what it should be.
Apr 2 '18 #81
twinnyfo
3,653 Expert Mod 2GB
Great! You are on the right track! Remember that this function uses a variable fed to it. That variable is: ???????

(Hint: it's also used in Line 6).
Apr 2 '18 #82
didacticone
266 256MB
wow i shouldve seen that it should be:

Expand|Select|Wrap|Line Numbers
  1. Me.Employee = Employee
Apr 2 '18 #83
twinnyfo
3,653 Expert Mod 2GB
You have just successfully performed troubleshooting!

Now, what's the Functoin for Checking going to look like?

It might be a while before I can respond, as I have some things going on here....
Apr 2 '18 #84
didacticone
266 256MB
I have no idea!!!! I have tried so many different things and can't seem to get it... if you can maybe point me in a direction I can try and see what I can figure out. and of course bro... sorry to keep bothering you but your a great teacher!
Apr 2 '18 #85
didacticone
266 256MB
actually i think you gave me everything i needed... hows this:

Expand|Select|Wrap|Line Numbers
  1. Private Function CheckOut(Employee As Integer)
  2. On Error GoTo EH
  3.     Dim strFilter As String
  4.  
  5.     'Filter by this employee
  6.     strFilter = "[Employee] = " & Employee & " " & _
  7.         "AND Format([SignIn], 'yyyy-mm-dd') = '" & _
  8.         Format(Date, "yyyy-mm-dd") & "'"
  9.     Me.Filter = strFilter
  10.     Me.FilterOn = True
  11.     Me.Employee = Employee
  12.     Me.signout = Now
  13.     Me.Refresh
  14.     CheckStatus
  15.  
  16.     Exit Function
  17. EH:
  18.     MsgBox "There was an error checking the Employee in!" & vbCrLf & vbCrLf & _
  19.         Err.Description & vbCrLf & vbCrLf & _
  20.         "Please contact your Database Administrator.", vbCritical, "WARNING!"
  21.     Exit Function
  22. End Function
Apr 2 '18 #86
twinnyfo
3,653 Expert Mod 2GB
Bravo! I will add one more detail tomorrow!

Very well done -- and you thought you were a novice......
Apr 2 '18 #87
didacticone
266 256MB
I am most certainly a novice... I have one more thing that i have been working on, and can start a new thread in the morning if you would like, since this one is quite long lol... in my original code i had a new form that would open if the guys only worked a half day... there are three different types of half days and i was playing around with some ideas but thing i need your advice. let me know what you think and if you want me to start a new thread... your the man for helping me with all of this. i have learned so much.
Apr 2 '18 #88
I think "Data type is not matching in criteria expression" on form open. You may take a look.
Apr 2 '18 #89
NeoPa
32,556 Expert Mod 16PB
DidacticOne:
I have one more thing that i have been working on, and can start a new thread in the morning
That sounds like a good idea. I'm sure Twinny won't fail to see it and/or respond.
Apr 2 '18 #90
twinnyfo
3,653 Expert Mod 2GB
didacticone,

Does this code now work (I know we have not addressed the "full day" issue yet)?
Apr 3 '18 #91
didacticone
266 256MB
Yes it does! It's great. I have posted the next conquest here:

https://bytes.com/topic/access/answe...on#post3815462

Thank you!!!
Apr 3 '18 #92
twinnyfo
3,653 Expert Mod 2GB
Also, I noticed from your follow-on thread that you have hard-coded the function calls to CheckIn/CheckOut for each of the buttons in VBA.

This does work. My intent in Post #76 was that the call would occur in the control itself. When you look at the event procedures in your properties window for your controls you will see [Event Procedure] in the field for your OnClick events. My intent was that you type in the call to the function directly: =CheckIn(1). This will keep your VBA page a bit neater.

Hoep this makes sense.
Apr 3 '18 #93
NeoPa
32,556 Expert Mod 16PB
This may not be a 'Best Answer' for the thread, as such, but is still very good advice. Even experienced Access developers often overlook this capability to simplify the code.

Nice work Twinny :-)
Apr 3 '18 #94

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: mbosco51 | last post by:
Hi. I am tring to setup an asp script that will do the following... If file date/time is within last 10 minutes then response.redirect to file else do something else end if The text file...
2
by: Naga Kiran | last post by:
Hi I want to set expiration date for my web based application. for eg it has to be worked for 15 days from the date when it was installed. More over i dont want to use system date to check the...
2
by: Naga Kiran | last post by:
Hi i want to set expiration date for my web based application. for eg it has to be worked for 15 days from the date when it was installed. More over i dont want to use system date to check the...
6
by: Mike Charney | last post by:
Is there a way to check a files date and time stamp from VBA in access. I have a need check a date stamp on a file that I am importing. Thanks in advance, Mike m charney at dunlap hospital...
1
by: shyam vashista | last post by:
i have problem in validation check for system date with server date problem::: If i change my system date as september 30, 2006 and use validation for filling form as current date as oct30,...
12
by: Frankline jose | last post by:
I am facing a problem to add the days with the existing date ex text field 1== 29/11/2006 Add day = 10 days I am getting the output as 39 / 11 / 2006 ...
4
dmjpro
by: dmjpro | last post by:
Now a days I take care of sensitive coding rather than completing the code anyhow. So have a look at this code. I am trying to check the Date Format. I am here assuming that the date separator...
3
by: PerumalSamy | last post by:
Hi I am developing a project in asp.net using vb coding. I need to add days/weeks/months to existing date in asp.net. Ex: existing date : 24/10/2007 Add : 10 days or 2 weeks...
1
by: suryam raju | last post by:
Sir This is raju I have a date in textbox and i want to add days/months/years to the existing date in textbox. and that date as target date so please help me urgent
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.