Here is a detailed discription of my problem: I have Two tables (Authors, Titles) that are joined with a one-to-many relationship. I use a query to use these tables as a basis for my form. My form has three text boxes that I am dealing with right now FirstName, LastName, and FullName. The user fills in the First and Last names and I want the Full Name to be updated in code... and here is my code
Option Compare Database
Option Explicit
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.FullName = Me.FirstName & " " & Me.LastName
End Sub
This works great for new records, but when I edit a record (i.e. change the last name) and then try to save it. I get a WRITE CONFLICT error. I have read through the write conflict posts and there seems to be a reference to docmd.runcommand accmdsaverecord, but I have not been able to get it to work. Any suggestions?
Option Compare Database
Option Explicit
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.FullName = Me.FirstName & " " & Me.LastName
End Sub
This works great for new records, but when I edit a record (i.e. change the last name) and then try to save it. I get a WRITE CONFLICT error. I have read through the write conflict posts and there seems to be a reference to docmd.runcommand accmdsaverecord, but I have not been able to get it to work. Any suggestions?