Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Tomorrow, 03:36
- Joined
- Sep 6, 2004
- Messages
- 897
I used to add record thru a combo box in footer and leave some fields blank that need to fill later when a particular data arises. This was practiced before when my FE and BE both were Access dbs.
But since I started using SQL Server (desktop version) as BE and Access MDB as FE, I face this problem that I can not update some of the fields of the records that I added.
Let us say I have following fields in my footer form out of which some will be filled after a particular date arrival.
RpoFId----------PK
MQE_No
RPO_No
RPO_Desc
Completion_Date
Project_Completed --------Check box
…
….
Remark
When add record, date fields would be empty because I need to feed them later. But I can not update the date fields next time once I come out of the form. My code was written after update event of Project_Completed which is check box It produced Write Conflict error (attached jpeg) at the code I wrote
Private Sub Project_Completed_Click()
Dim db As Database
Dim frm As Form
Dim EdRec As Recordset
Set db = CurrentDb()
Set EdRec = db.OpenRecordset("T_RPO_Footer")
EdRec.Edit
If IsNull(Me.Completion_Date) Then
Completion_Date = Format(Now(), "MM/DD/YYYY")
MsgBox "YOU MAY CHANGE COMPLETION DATE..", vbInformation, "INFORMATION"
Me.Completion_Date.SetFocus
Else
EdRec!Project_Completed = 1
End If
EdRec.Update
EdRec.Close
End Sub
I want to update any of the field I need without producing Write Conflict Error.
Can somebody of you people help me out to correct above code?
But since I started using SQL Server (desktop version) as BE and Access MDB as FE, I face this problem that I can not update some of the fields of the records that I added.
Let us say I have following fields in my footer form out of which some will be filled after a particular date arrival.
RpoFId----------PK
MQE_No
RPO_No
RPO_Desc
Completion_Date
Project_Completed --------Check box
…
….
Remark
When add record, date fields would be empty because I need to feed them later. But I can not update the date fields next time once I come out of the form. My code was written after update event of Project_Completed which is check box It produced Write Conflict error (attached jpeg) at the code I wrote
Private Sub Project_Completed_Click()
Dim db As Database
Dim frm As Form
Dim EdRec As Recordset
Set db = CurrentDb()
Set EdRec = db.OpenRecordset("T_RPO_Footer")
EdRec.Edit
If IsNull(Me.Completion_Date) Then
Completion_Date = Format(Now(), "MM/DD/YYYY")
MsgBox "YOU MAY CHANGE COMPLETION DATE..", vbInformation, "INFORMATION"
Me.Completion_Date.SetFocus
Else
EdRec!Project_Completed = 1
End If
EdRec.Update
EdRec.Close
End Sub
I want to update any of the field I need without producing Write Conflict Error.
Can somebody of you people help me out to correct above code?