473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to clear data in the Data Combo box at runtime

16 New Member
I want code for how to clear values in the datacombo box (not combo box) at run time.

Plz give corect method or solution
Oct 10 '08 #1
4 4644
lee123
556 Contributor
what do you mean clear a datacombo1? is this after you have made a selection in the datacombo1? and you want it to be blank for the next selection?

i don't know if this is what you want but try this, it will clear the datacombo with a button.

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdClear_Click()
  2. DataCombo1 = ""
  3. End Sub
if this is not what you want Please explain better of what your asking
lee123
Oct 10 '08 #2
Montravont
10 New Member
for almost all forms objects which can accept data input.. you can just use .clear so it would looks something like

datacombo.clear


if you want to clear the box when the form loads... just put the code in the form load portion of your program
Oct 10 '08 #3
sunilkds
16 New Member
hello lee123,

i am loading some data into the Datacombox.So i want delete data in the datacombobox,your code

Datacombobox="" clears only first(appearing) value not the entire values.

For example,
Simple combo box has .clear() method to clear all the data at run time.

But datacombobox doesnt......

So how to clear Data combobox..........


I want solution plz reply quickly bcz i am developing one project
Oct 11 '08 #4
lee123
556 Contributor
hey i don't think you can, because I imagine your using an adodc or datacontrol
right. if you are then probably you can't because your pulling information from a database like access or someother source, or maybe I'm wrong how are you getting this data your entering in.

lee123
Oct 11 '08 #5

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

Similar topics

2
2003
by: kk | last post by:
Have 2 problems, any help is appreciated. Tab with Grids -------------- BL - fetching data from DB ( 5 secs - 10 rows) Grid Laod - 20 secs Grid Paint on tab change - 20 secs Problem: The...
1
10108
by: SAN CAZIANO | last post by:
how can clear an html SELECT and next insert in it all the elements of an array () I try this but seems doesn't works. function ComboAddArrayValueWithLabel(combo,ArrayLabel,ArrayValue) { ...
0
1197
by: Lauren Wilson | last post by:
Hi Folks, I have a combo box on a multi-record form. About every other time I select something from the STATIC list of options, I get this result: What on earth is the cause of this error...
0
1130
by: VRWC | last post by:
Hi Folks, I have a combo box on a multi-record form. About every other time I select something from the STATIC list of options, I get this result: What on earth is the cause of this error...
5
59416
by: feng | last post by:
In our VB.Net Windows form application we have a combobox pre-populated with a list of items. What I need is simply clear everything from it's dropdown, when a button is clicked. I tried...
19
7124
by: Krishanu Debnath | last post by:
Hello, I have a call to hash_map::clear() function which takes long time. someClass::someFunction() { // typedef hash_map<name_id, uintMp; // Mp p; // assuming proper namespace, hash...
0
1239
by: Andrew Denham | last post by:
Hi, I am a relative VB novice trying to talk to a microcontroller devlopment kit from VB express. I am using serialcommchat - a simple serial port RS232 program that works very well. It can be...
3
3075
by: JennDavila | last post by:
Hello, Not sure if my title was correct, but here is what I am dealing with. I have created a DB that contains different tables that are linked to a form through combo box's. I have createad a...
1
1769
by: sunilkds | last post by:
I want code for how to clear values in the datacombo at run time. Plz give corect method or solution
0
7181
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
6846
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
7349
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
5442
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,...
1
4874
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
4565
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...
0
3076
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
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
267
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.