473,385 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't use Listbox with AllowSpecialKeys=False

1,271 Expert 1GB
Trying to control the environment so user's can't get into my queries is driving me up a wall and making me say 3-letter words like 'dam'. Arrrrggghhh!!

I use the command
Expand|Select|Wrap|Line Numbers
  1. CurrentDb.Properties("AllowSpecialKeys")=False
in menu OnLoad event. Now, all the listboxes in the menu are dead. Clicking on a selection is useless. Take the above command out and the listboxes come back to life.

Using Access 2010 but with db format of Access 2007.

And I can hide the navigation window in the .accdb version (until they hit "specialkey" F11!!) but when using the Runtime version .accde I cannot hide the nav window. What gives with that?

Has anyone solved these problems?

Jim
Jan 6 '15 #1
3 1201
twinnyfo
3,653 Expert Mod 2GB
Jim,

Have you tried setting the AllowSpecialKeys property from the Main DB options? I turn mine off programattically when I create my MDE file, but haven't had any issues like you describe.
Jan 7 '15 #2
jimatqsi
1,271 Expert 1GB
Yes, I have tried that. It made my listboxes become "dead"; they didn't respond to clicks. Now that is not the case. I just ran a test, and after setting the main db option to turn off special keys my list boxes still work.

I'm not sure what's different. I think it is related to some code I wrote to hide the database window. I took that out and set the option in the main db options to hide the window. But I should have been able to do that programatically without putting my listboxes to sleep.

I'm confused.

Jim
Jan 7 '15 #3
twinnyfo
3,653 Expert Mod 2GB
Note my avatar--scratching my head. Some things just don't make sense.
Jan 7 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: f_salazar | last post by:
English Version !! Hi !! I have a page with a Form, inside the form I have listbox with 'X' elements. Wend I submit the page, an ASP process inside the page have to read those elements and...
3
by: Simon Rowe | last post by:
Probably really simple but I cant work it out... I have a list box on a form with a few records in. When I open the form the first record is sort of highlight with a dashed box, when I cursor...
5
by: xzzy | last post by:
how would I add items to a listbox from a function in a different class in the solution? i.e. something like: namespace.frmMain.listBox1.items.add(0,"text to add"); Thank you
3
by: Prasad | last post by:
Hey All, I am having a little trouble with the ListBox's Items collection property. I am populating the ListBox with data contained in an SQL table using SQLDataAdapter and DataSet. I have...
3
by: me | last post by:
Is there any particular reason why a requiredfieldvalidator cant validate a listbox? I have bound the two together but the validator always returns false on isvalid and so does the Page, no matter...
6
by: P K | last post by:
I have a listbox which I am populating on the client (it contains a list of dates selected from calender). The listbox is a server control. When I get to the server after postback by selecting an...
18
by: Dave Sauny | last post by:
Ok, its a friday, I'm at work and I cant get this to work: I have 3 listboxes on one tab control page. when i select an item in listbox1 i want whatever is selected on the other 2 listboxes...
0
by: R.Nijkamp | last post by:
Hello, i was wondering if its an limitation of IE when a asp.net listbox is set disabled, then a user wont be able to scroll inside the listbox. While the user can scroll inside the listbox when...
5
by: lukasmazur | last post by:
Hi I have a problem with using listBox1. I have a two forms form1 and form2. In form1 are controls listBox1, textBox1 and button witch creating object of class Form2. In class Form2 I create a...
6
by: Dan Effets | last post by:
Hello, I am working on a project in my C# book Tranfer Textbox to Combo, Combo to Text,Textbox to list ,but I cant listbox to go to Combo.Instead of the word , it puts (collection) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.