Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

locked table run-time error 3211

Posted on 2001-08-17
14
217 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

828 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