Solved

locked table run-time error 3211

Posted on 2001-08-17
14
216 Views
Last Modified: 2012-05-04
I have a form that has a list box that is populated by a saved query.  I have two text boxes that accept date input and a refresh command button that requeries the table to populate the list box when dates are changed.  When I hit refresh the process is stopped because a the table is locked by the saved query.  How do i get around this problem?
0
Comment
Question by:pcdaveh
  • 5
  • 4
  • 3
  • +2
14 Comments
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6398722
What are your record locks set to on your table?  you may have to set them to no locks.  Also, you should use the requery method rather than the refresh.
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6398723
Hi pcdaveh,

u can use a sql-statement to populate the listbox.

dim strSQL as string
strSQL = "Select FirstField, SecondField from YourTable where YourDate1 > #" & me.txtbox1 & "# and Yourdate1 < #" & me.txtbox2 & "#;"
me.ListBox.Rowsource = strSQL


clear?

Cheers
Ricky
0
 

Author Comment

by:pcdaveh
ID: 6398740
I had previously embedded the SQL statement in the vba code as the row source to the list box.  I received the same errors.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6398775
I am thinking you have your record locks option set to All Records.  I believe the table cannot be accessed at all with this option checked, but I've been wrong before and I'm sure I will again...right Ricky :-)
0
 

Author Comment

by:pcdaveh
ID: 6398776
I had previously embedded the SQL statement in the vba code as the row source to the list box.  I received the same errors.
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6398813
lol PsychoDazey, its been a long week for all of us... :-)
(but not for me, i've been home all week, and the next couple of weeks, broke my whrist last saturday  :-(  )

cheers
Ricky
0
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6398818
Ouch!  You've got to take it easy on that keyboard!  I broke my wrist before, 4 months in a cast!
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6398837
dont read tooooo fast, as i'm typing with my left hand only, which is pretty slow.............
0
 

Author Comment

by:pcdaveh
ID: 6398884
I'm hanging it up 'til Monday!  Have a good weekend Fellas!
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6398912
good weekend to u too pcdaveh, and u PsychoDazey,

cheers
Ricky
0
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6400580
Same to you all.  Get some rest paurths
0
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6458948
any luck pcdaveh?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6990410
for pcdaveh

It's time to clean up this TA, so I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 6990442
As per request, this question will be placed in PAQ, and points refunded.

Regards,
ComTech
CS Admin @ EE
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now