Solved

How to set ListBox as Read Only in Access 2000

Posted on 2011-03-24
4
475 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
[X]
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
  • 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 - Microsoft MVP, Access and Data Platform) 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 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