473,394 Members | 1,806 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,394 software developers and data experts.

Unbound Control and AllowEdit = False

I've got a form with AllowEdit = False.

On it is a tab control, one of the tab pages has an unbound listbox which
fetches data from another table.

I am unable to select items in the listbox.

Seems a bit odd that AllowEdit disables unbound controls. Is there a
work-around to this? Have I overlooked something?

(p.s. usings Access 2000)

--
email: my*****@canada.com // my_nick = mork
Nov 12 '05 #1
3 7635
Maybe allowing edit on control's Keydown event , than, after update event,
disallow it.

Sorry for my poor english!
"mork" <my*****@canada.com> escreveu na mensagem
news:op**************@news.ss.shawcable.net...
I've got a form with AllowEdit = False.

On it is a tab control, one of the tab pages has an unbound listbox which
fetches data from another table.

I am unable to select items in the listbox.

Seems a bit odd that AllowEdit disables unbound controls. Is there a
work-around to this? Have I overlooked something?

(p.s. usings Access 2000)

--
email: my*****@canada.com // my_nick = mork

Nov 12 '05 #2
Roberto,

Your solution is so simple it is brilliant! Best of all, it worked!

On mouse down: AllowEdits = True
On mouse up: AllowEdits = False

my doubeclick event even works.. it's very seamless to the user.

p.s. your english is fine!

--
email: my*****@canada.com // my_nick = mork

On Thu, 23 Oct 2003 14:24:53 -0200, Roberto Spier <fo*****@invalid.com>
wrote:
Maybe allowing edit on control's Keydown event , than, after update
event,
disallow it.

Sorry for my poor english!
"mork" <my*****@canada.com> escreveu na mensagem
news:op**************@news.ss.shawcable.net...
I've got a form with AllowEdit = False.

On it is a tab control, one of the tab pages has an unbound listbox
which
fetches data from another table.

I am unable to select items in the listbox.

Seems a bit odd that AllowEdit disables unbound controls. Is there a
work-around to this? Have I overlooked something?

(p.s. usings Access 2000)

--
email: my*****@canada.com // my_nick = mork

Nov 12 '05 #3
If you are in Access 2000 or above, you can get the behavior you are
looking for by leaving AllowEdit = True, and either setting the form's
recordset type to Snapshot or adding Cancel = True to the form's "On Dirty"
handler.

In Access 97, the Snapshot method works, but you can't use the On Dirty
technique because that event handler was not yet available. The Snapshot
method is fine for small result sets, but will be slow for large ones.

On Thu, 23 Oct 2003 02:04:41 GMT, mork <my*****@canada.com> wrote:
I've got a form with AllowEdit = False.

On it is a tab control, one of the tab pages has an unbound listbox which
fetches data from another table.

I am unable to select items in the listbox.

Seems a bit odd that AllowEdit disables unbound controls. Is there a
work-around to this? Have I overlooked something?

(p.s. usings Access 2000)


Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim M | last post by:
To prevent data corruption I have replaced a memo field on my form with an unbound control on my form that I populate with a function that fills it from a memo field from my table. When the form is...
2
by: Susan Bricker | last post by:
Greetings! Still the same application (as previous posts). I worked on the app while at work (don't tell my boss ... cause this is just for fun and not work related) and the form was working,...
2
by: hmiller | last post by:
Hope I make my case clear!!! I have a table with two bound date/time fields. I want to be able to use an IF statement and DateDiff to return a text message in an unbound text box. I want to do...
9
by: Woody Splawn | last post by:
On a winform, how do I trap for the user pressing Control Delete? I thought perhaps something like the following in the keydown event of the grid, but the code below does not work. If e.KeyCode...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
8
by: Robert | last post by:
I have a form (Worksheet) that works fine by itself. I have now created a seperate form (MainForm) that has a command button in the header and an unbound subform (FormFrame) in the Detail section....
2
by: Steven Little | last post by:
Hello, I have a new form I created with two fields: USER_ID and PASSWORD which are simple unbound items. The perplexing thing is that I cannot input data into either. They are enable and...
3
by: scott_baird | last post by:
Probably something simple, but it's driving me up the wall... In a report, I have an unbound control that is the total of 2 other bound controls (currency) as follows: unbound control =cash1 +...
2
by: Manekurt | last post by:
Hello Everyone. Does anyone knows how to create a new property for an user control that inherits a list view? The property should be a boolean value set to each clumn that is created in the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.