Solved

locked table run-time error 3211

Posted on 2001-08-17
14
214 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
 
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help writing a query 6 73
Access 2010 db.Execute using dbFailOnError and dbSeeChanges 10 49
Track name AutoCorrect info 14 48
Running Total in Access 4 20
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

861 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

24 Experts available now in Live!

Get 1:1 Help Now