473,433 Members | 2,050 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,433 software developers and data experts.

how to lock a combo box in a form after selecting data

1
i have form with a subform, in the main form i want to lock a specific combo box after entering/choosing data. I have tried locking it in on current but i locks all my record and i can't enter a new record. please help
Aug 8 '23 #1
1 16648
NeoPa
32,556 Expert Mod 16PB
Hi eilaw.

Welcome to Bytes.com.

I'd like to help but my options are severely limited based on the lack of anything helpful in the question.

So, I have no idea what you're actually doing, but hopefully I can point you to what you should be doing and that way you can compare that with what you are and spot the difference.

The first thing you should be doing is to identify the point at which you want to lock access to the particular ComboBox control you're talking about. This may, and probably does, also require you to identify the point where access is re-enabled.

Once you've done that, and that really should be the hardest part, then you set or clear the .Enabled or .Locked properties of the ComboBox control at those points. Which property you choose to use will be deteremined by exactly how you want it to behave. Setting .Enabled to False will not only stop any interaction with it, but also turn it grey. On the other hand setting .Locked to True will do exactly as expected and simply stop the operator from changing the value.

PS. I highly recommend you visit How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION! before posting your next question.
Aug 8 '23 #2

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

Similar topics

3
by: james | last post by:
How can I have a php script send data to a URL as form post data from within the script without creating an actual form in a web page. I am working with an affiliate program (from Affiliateshop)...
7
by: Nige | last post by:
Is it possible to convert an item of form field data to uppercase using the toUpperCase() method? What I'm really asking is, how do I reference the data item? -- Nige Please replace YYYY...
4
by: sara | last post by:
I am learning with a simple application/form. I am ok - enter customer name, list box of customers, select a customer, see the items for that customer. The items form has customer ID and Name...
5
by: amanatio | last post by:
I have a huge form with many data bound controls on it and 34 tables in database (and of course 34 data adapters and 34 datasets). The form is extremely slow to design (huge delay when I go to code...
1
by: Chris Ashley | last post by:
How do I lock a form so none of its controls are selectable, it cannot be resized, clicked on etc? Chris
1
by: NumberCruncher | last post by:
Hi All, I am struggling with setting up my first system of tables, forms,and reports, and could use your help! I am setting up a database to keep track of the production of a produced item. The...
2
by: Certys | last post by:
Hello, I have a form where I only allow new records to be added. I enable this by setting the form property "Data Entry" to Yes. I want to access other records in the same table- to autofill...
1
by: Ashton12 | last post by:
I have a form with two command buttons and want them to open a separate "work order" form in different ways. The two forms are linked by an ID field. One of the buttons, the "View Work Orders"...
2
by: user5560 | last post by:
How do i lock one form to another form? so when i move around form1, form2 moves along with form1? thank u
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.