?
Solved

How to set ListBox as Read Only in Access 2000

Posted on 2011-03-24
4
Medium Priority
?
482 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

764 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