![]() |
help
hello everybody , i am doing a vb project and needs some help. i currently store the date and time details in access database. i want to retreive the time to a textbox. but when i retreive the time the date also show up. how do i limit to time only
thx. |
Next time, don't put words like "help", "please...", and other words that don't specifically say anything.
What was the object you used to call your MS Access file? |
show us some code so we can help.. i have posted something about MSAccess and dates before, you should also search the forums b4 posting..
what are you using ? oledbreader..? |
reply
what i mean is this. i want to extract the time from the date function. that is one question. the other one is when i extract a time from the database it shows wrong time,which is not stored in my database , could anyof you explain to me why?
thx |
Quote:
|
We can take literally hundreds of guesses to your question if you don't have the codes posted ;)
|
here's one way to do it
:
so as you can see, i basically just handled it like a string and parsed out the part of it i wanted in each case. one button displays the full date and time another button displays time only, with seconds and the third button displays time only, without seconds I'm not going to code the whole program, I'll leave the retrieval of the datetime object from the MSAccess Database up to you, but here is how you can manipulate it once you've retrieved it to get the value you desire out of it. cheers :banana: |
| All times are GMT -5. The time now is 12:55 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC