Hi Jim,
dirty: yes
>> But if I add a record in the subform or edit a record I get the error again <<
What is the RecordSource for the subform? One table? More? Are any tables also being used by other forms or subforms that are open?
crystal
~ have an awesome day ~
So I have been on several Annual State mandated projects that needed to be taken care of. So I am back on them.
So I noticed something. If I add a new record, all works great. But if I add a record in the subform or edit a record I get the error again.
Is this what you meant about the dirty property?
Private Sub TimeSpent_Dirty(Cancel As Integer)
If Me.Dirty Then
Me.Dirty = False
End If
End Sub
Jim Wagner
On Mon Apr 24 2017 06:55:51 GMT-0700 (US Mountain Standard Time), crystal 8 strive4peace2008@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Hi Jim,
adding on...
The SS Timestamp data type is not like Date/Time in Access and cannot be read directly by Access since it is binary.
https://technet.microsoft.com/en-us/library/ms182776(v=sql.110).aspx
re: the error message you are getting:
If you have a form with the data and are also modifying data with SQL statements, be sure to save the record in the form before setting database object variable and running the SQL.
if me.dirty then me.dirty = false
Also, once you run SQL, don't make changes to the same record by setting form controls -- my experience is that it is better to use SQL again if you need to do that.
respectfully,
crystal
http://www.MsAccessGurus.com
connect to me, let's build it together
~ have an awesome day ~
On 4/12/2017 12:22 PM, Jim Wagner luvmymelody@yahoo.com [MS_Access_Professionals] wrote:
John,
I will give that a shot. Thank you
Jim Wagner
On Wednesday, April 12, 2017 09:32:10 AM, John Viescas JohnV@msn.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:Jim-
The table must have a Primary Key and *may* need a Timestamp field if you run into this issue. Have you tried adding a Timestamp? Do that by editing the table in Management Studio, then re-link the table in Access.
John Viescas, AuthorEffective SQLSQL Queries for Mere MortalsMicrosoft Access 2010 Inside OutMicrosoft Access 2007 Inside OutMicrosoft Access 2003 Inside OutBuilding Microsoft Access Applications(Paris, France)
On Apr 12, 2017, at 5:53 PM, luvmymelody@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
Tidak ada komentar:
Posting Komentar