Solved

How to set ListBox as Read Only in Access 2000

Posted on 2011-03-24
4
432 Views
Last Modified: 2012-08-13
I am trying to figure out how to make a ListBox's rowsource recordset be Read Only.
I am assumming it is not by default. When opening a recordset using Set RS= "sql string, etc, etc", I know I can specify a dbOpenSnapshot option, but can't figure out how to accomplish this in a SQL statement within Access.

This is an example of how I am defining the row source for the list box:
SqlString="Select * from tblCustomers"
ListBox.Rowsource=" SqlString

I don't want a lock on that table when filling the list box.

Thanks.

0
Comment
Question by:rfmassa
  • 2
  • 2
4 Comments
 
LVL 75
ID: 35208330
Can I ask why you need to do this?  By definition, the Row Source of a List box is 'read only' ... in the context of using this SQL in a list box, ie, no data can be changed when connected to a list box.

mx
0
 

Author Comment

by:rfmassa
ID: 35209544
I am getting record locks when users are accessing this data, and I am trying to make sure this is not the culprit. I was not able to determine if list boxes were read only or if the recordset that opens were read/write (although I saw no reason why they would be, but could not verify this). If they are read only, then I have no issue at this point as the list box must not be the problem.

-Ray
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 35209607
List box is definitely not the problem ...

mx
0
 

Author Comment

by:rfmassa
ID: 35209703
Thank you for your help.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
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…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

757 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

18 Experts available now in Live!

Get 1:1 Help Now