473,806 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7660
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*****@invali d.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
2682
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 closed, another function in a query writes it to the memo field. No trouble. When I run spell check on the form it makes the corrections in the memo field, but does not save them when I write from the form: I put this in the AFTERUPDATE...
2
2521
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, but now when I try to repeat the code at home (for real) it won't work. I suspect that I haven't replicated the logic and forms at home from what I remember that I did while at work. My subform is based on a table called "tblTrialClass" and it...
2
8265
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 this all from the control source of the unbound text box. What I think it should look like is something like this; If(DateDiff("d",,)) > 5, Then Display "On Time"
9
1429
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 = Keys.ControlKey.Delete Then MsgBox("You pressed Control Delete") End If
18
3806
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 trouble. I have tried keeping some of the fields bound and when I use the save button it has been saving as 2 different records. This is unacceptable. This is what I have, can anyone help me out with this?
8
8330
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. when the user clicks the command button, Worksheet is loaded into the subform control. At this point, some of the functions do not work. The user is prompted to enter a Parameter Value. Why wouldn't that form (Worksheet) work the same as a sub...
2
1268
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 unlocked. I can tab to them, but I can't put in anything. The password field I have set to password input mask and shows a single *. Any help would be great!
3
2015
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 + cash2 However, it is possible that either cash1 or cash2 can be null, in which case the unbound control displays nothing (apparently, addition only works with a zero or above). What I want to do is something along
2
4972
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 listview. Property "ALLOWEDIT", when I set this property to TRUE, then it runs a sub, if not, it does nothing Any ideas? Thank you!!!
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.