Solved

How to set ListBox as Read Only in Access 2000

Posted on 2011-03-24
4
457 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

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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 simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

803 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