loyal Posted October 15, 2003 Posted October 15, 2003 hi I have an app that saves the Exit Time and Return Time that saves these times in Access Database I found that it always saves time with 12:00 I Tried with SQL and It works is there any solution for that ? bye Quote Gary Says: To be a good programmer, you must be good at debugging
*Experts* Volte Posted October 15, 2003 *Experts* Posted October 15, 2003 We'll need some code. Quote
loyal Posted October 16, 2003 Author Posted October 16, 2003 Hi I am only catching the Change that happen to dataset Me.BindingContext(Ds1, "TD").EndCurrentEdit() Dim DSC As TimeDataBase.DS = New TimeDataBase.DS DSC = CType(Ds1.GetChanges, TimeDataBase.DS) 'Check to see if any changes have been made. If (Not (DSC) Is Nothing) Then Try 'There are changes that need to be made, so attempt to update the datasource by 'calling the update method and passing the dataset and any parameters. DA.Update(DSC) Ds1.Merge(DSC) Ds1.AcceptChanges() Catch eUpdate As System.Exception End Try End If End Sub Note: when I made a form from Access Data base it works please see an example heretimedatabase.zip Quote Gary Says: To be a good programmer, you must be good at debugging
loyal Posted October 16, 2003 Author Posted October 16, 2003 please somebody help !!! Quote Gary Says: To be a good programmer, you must be good at debugging
loyal Posted October 17, 2003 Author Posted October 17, 2003 hello VolteFace please what did you get ? Quote Gary Says: To be a good programmer, you must be good at debugging
*Experts* jfackler Posted October 17, 2003 *Experts* Posted October 17, 2003 Loyal, Sounds like you're in dire straits. A few questions to start a dialog: 1. What is the Date/Time Format in Access. (Try General Date/Time) 2. I'm afraid I'm at a loss regarding what a TimeDataBase.DS type actually is. I've not seen it on this forum at all in fact. My guess is, your types are mismatched in Access and in your code. The Access is probably truncating the value and leaving you with that 12:00 Am. It is the default time when only a date is provided. Jon Quote
loyal Posted October 18, 2003 Author Posted October 18, 2003 thanks for your replied jfackler I stuck with it a week ago :( Quote Gary Says: To be a good programmer, you must be good at debugging
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.