473,503 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set Textbox value by selecting item from combobox but it must be editable

101 New Member
Hi,

I have one projrct in MS Access.
I have one form in which there is one Combobx(PalletNo_combo) and one Textbox(ShippedQuantity).
Now when I select an item from Combobox then it will automatically set the value of Textbox.
For that I am using code in control source properties of Textbox
=(DLookUp("val([QTYONHAND])","PRODUCTION","PalletNo=[Forms]![ShippingEntry]![PalletNo_Combo]"))
Uptil here its fine.

But after that, in some scenario,I have to change the value of that Textbox.
But when I click on the Textbox and enter something then it will show me this

control can't be edited;it's bound to the expression
(DLookUp("val([QTYONHAND])","PRODUCTION","PalletNo=[Forms]![ShippingEntry]![PalletNo_Combo]"))
So I want to change the value in only some cases,like 1out of 100,if i have to change it then what to do?I want to make that Textbox Editable so i can edit it
How can i do that?

Thanks
Dec 7 '07 #1
2 4545
BradHodge
166 Recognized Expert New Member
Hi,

I have one projrct in MS Access.
I have one form in which there is one Combobx(PalletNo_combo) and one Textbox(ShippedQuantity).
Now when I select an item from Combobox then it will automatically set the value of Textbox.
For that I am using code in control source properties of Textbox

Uptil here its fine.

But after that, in some scenario,I have to change the value of that Textbox.
But when I click on the Textbox and enter something then it will show me this



So I want to change the value in only some cases,like 1out of 100,if i have to change it then what to do?I want to make that Textbox Editable so i can edit it
How can i do that?

Thanks
I would think that instead of setting the Control Source of your textbox to the combo box, I would use the AfterUpdate Event of the combo box to plug in it's value to the textbox.

You have likely got the Limit to List property of the combobox set to Yes, and therefore, since the text box is pulling it's info from the combo, it is not editable either.

Brad.
Dec 7 '07 #2
billa856
101 New Member
Thanks buddy its working.
Dec 10 '07 #3

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

Similar topics

5
3048
by: Steve | last post by:
I have an unbound combobox in the form header of a continuous form. The selection in the combobox sets the where clause in a querydef which determines QryPFrmInventoryManagement. The following code...
0
1944
by: Ken Arway | last post by:
Using .Net framework 1.1 I've got a Windows Forms application with a tab control having four tab pages. TabPage4 contains a Combobox and a TextBox, which are bound to the same XML file as a...
2
19815
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
7
4552
by: Simon Verona | last post by:
I posted this in dotnet.languages.vb.controls but thought I'd post here as well.. I have a combobox that is bound to a dataview generated from a dataset. The dataset has a single table...
2
8646
by: shumaker | last post by:
I have a combobox that is very much like the one found in the RSS project here: http://msdn.microsoft.com/vstudio/express/visualCSharp/learning/ My projectNameComboBox basically is filled with a...
1
1974
by: James | last post by:
Hi. Not sure if I'm trying the impossible here but using VStudio 2005 I have to allow for an editable Gridview field that gives a user the option of manually typing a value OR selecting it from...
1
3198
by: billypit | last post by:
Hi, I am totaly new to MS Access. I have one form in MS Access in which i want that whenever i select an item from combobox then in the textbox on the same form or subform i want value from table...
4
10787
by: billa856 | last post by:
Hi, I want to know how can we set the value of Textbox = value of field in table when we select a value form combobx. example i have a table customer CID CNAME CSALARY 1 Billa ...
1
5215
by: sbandalli | last post by:
Hello, I have a Datagridview which has a combobox,and 2 textbox, The combobox is bound to a Datasource(Database Sql Server and the table name is Category) ,and Datagridview is not bounded to any...
0
7086
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
7330
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
6991
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...
1
5014
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
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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...

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.