Solved

locked table run-time error 3211

Posted on 2001-08-17
14
218 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server views 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 Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

726 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