Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Gary Says: To be a good programmer, you must be good at debugging
Posted

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 here

timedatabase.zip

Gary Says: To be a good programmer, you must be good at debugging
  • *Experts*
Posted

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

Posted

thanks for your replied jfackler

 

I stuck with it a week ago

 

:(

Gary Says: To be a good programmer, you must be good at debugging

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...