Hello everyone,
I have written some code that will add some entries to a table:
Set myTable1 = db.TableDefs("Weekly_Card")
Set rst1 = myTable1.OpenRecordset(dbOpenDynaset, dbOptimistic)
While i < arrayCounter
With rst1
.AddNew
![ProjectID] = projectNames(i)
![MemberID] = usrName
![WeekNo] = noWeek
.Update
End With
i = i + 1
Wend
The problem is that when i am trying to execute this code a form is already open that is bound to the table and so i get the followng error:
"3211" Runtime error
"The Database engine could not lock table "Weekly Card" because its already in use by another person or process"
Now my questions are:
Is there a way to access the table and add data to it whilst it is being used ?
Is there a way around this problem?
I am using Microsoft Office access 2003.
Thanks in advance
--Stav.
I have written some code that will add some entries to a table:
Set myTable1 = db.TableDefs("Weekly_Card")
Set rst1 = myTable1.OpenRecordset(dbOpenDynaset, dbOptimistic)
While i < arrayCounter
With rst1
.AddNew
![ProjectID] = projectNames(i)
![MemberID] = usrName
![WeekNo] = noWeek
.Update
End With
i = i + 1
Wend
The problem is that when i am trying to execute this code a form is already open that is bound to the table and so i get the followng error:
"3211" Runtime error
"The Database engine could not lock table "Weekly Card" because its already in use by another person or process"
Now my questions are:
Is there a way to access the table and add data to it whilst it is being used ?
Is there a way around this problem?
I am using Microsoft Office access 2003.
Thanks in advance
--Stav.