1) I have main Form and Subform.
The Subform is displaying some data depending on the accountID value on the main form.
The problem is when I delete record in the subform. It takes several seconds for subform to show new state.
Just for the test purpose I created "Refresh" button which does requery on the subform. I usually have to press it 3-4 times untill I see updated information (record deleted)
This is how I delete:
What I am doing wrong?
2) Second problem is, I am very often getting a message like "The database has been placed in state by user 'Admin' on machine XXXX (which is my machine???) that prevents it from being opened or locked."????????????
What is this....
My boss dropped this project in my hand. I feel so unfortunate that I have to deal with this Access ... thing.
Thanks.
The Subform is displaying some data depending on the accountID value on the main form.
The problem is when I delete record in the subform. It takes several seconds for subform to show new state.
Just for the test purpose I created "Refresh" button which does requery on the subform. I usually have to press it 3-4 times untill I see updated information (record deleted)
This is how I delete:
Code:
Dim strSQL
Dim cnn As New ADODB.Connection
cnn.Open (CurrentProject.Connection)
strSQL = "DELETE FROM tblContacts WHERE contactID = " & Me.tblContactEdit.Form.[contactID]
cnn.Execute strSQL, adExecuteNoRecords
cnn.Close
What I am doing wrong?
2) Second problem is, I am very often getting a message like "The database has been placed in state by user 'Admin' on machine XXXX (which is my machine???) that prevents it from being opened or locked."????????????
What is this....
My boss dropped this project in my hand. I feel so unfortunate that I have to deal with this Access ... thing.
Thanks.