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

Empty 29 comboboxes?

I have a form with 29 comboboxes.
The are called me.combocg1, me.combocg2, me.combocg3 etc etc

What is the best way to empty them?

For i = 1 To 29
varCombo = "me.combocg" & i
WaardeOnthouden = ""
varCombo = WaardeOnthouden
Next

does not do the trick :s

Ideals anyone?

Suggestions ans thinking along with me are greatly appreciated!

Mar 12 '07 #1
4 1331
Try:

For i = 1 to 29
Me("combocg" & i) = Null
Next

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Henrootje" <He****@gmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
>I have a form with 29 comboboxes.
The are called me.combocg1, me.combocg2, me.combocg3 etc etc

What is the best way to empty them?

For i = 1 To 29
varCombo = "me.combocg" & i
WaardeOnthouden = ""
varCombo = WaardeOnthouden
Next

does not do the trick :s

Ideals anyone?

Suggestions ans thinking along with me are greatly appreciated!
Mar 12 '07 #2
Allen,

I personally will make sure that you get your own statue in the parc
where I live!
It is in Enschede, Netherlands, Europe so unfortunately you will
probably not be able to see it.
Viewing it through Google Earth might be a bit hard with alle the
trees in the parc blocking the view and all. <grin>

But rest assured that I think that you deserve a statue and you should
relish in the fact that there is one bearing your name.

Oh, and the code works swell!!!!
greetings, Henro
On 12 mrt, 12:08, "Allen Browne" <AllenBro...@SeeSig.Invalidwrote:
Try:

For i = 1 to 29
Me("combocg" & i) = Null
Next

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Henrootje" <Hen...@gmail.comwrote in message

news:11**********************@p10g2000cwp.googlegr oups.com...
I have a form with 29 comboboxes.
The are called me.combocg1, me.combocg2, me.combocg3 etc etc
What is the best way to empty them?
For i = 1 To 29
varCombo = "me.combocg" & i
WaardeOnthouden = ""
varCombo = WaardeOnthouden
Next
does not do the trick :s
Ideals anyone?
Suggestions ans thinking along with me are greatly appreciated!- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Mar 12 '07 #3
Henrootje wrote:
But rest assured that I think that you deserve a statue and you should
relish in the fact that there is one bearing your name.

Oh, and the code works swell!!!!
Yes, we're erecting one here in St. JOhn's, Newfoundland, CAnada, as
well... 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Mar 12 '07 #4
"Allen Browne" <Al*********@SeeSig.Invalidwrote in
news:45**********************@per-qv1-newsreader-01.iinet.net.au:
Try:

For i = 1 to 29
Me("combocg" & i) = Null
Next
This is the kind of thing I'd use a custom collection for. I've
written about it many times in this newsgroup, so getting
instructions ought to be quite easy by some searching on this email
address and "custom collection" on Google Groups.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 12 '07 #5

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

Similar topics

4
by: Kathy | last post by:
In my custom menu one menu item opens a form to add new Makes to TblMakes and another menu item opens a form to add new Models to TblModels. I have a form that has a combobox for Makes and a...
0
by: johnson_cy | last post by:
I am using Access 2000. My main form has a record source of a table (employeeTbl with key of . It is filtering the record results. My subform and mainform have the link child/link master set...
1
by: Craig G | last post by:
for months we have been dabling round looking at various 3rd party comboboxes that allow the user to type text into the combobox as a search mechanism what we've found is that the likes of...
1
by: Marcin Podle¶ny | last post by:
Hi, I've a form with three comboboxes. Each of them contains the same data - all cities in my country. As you see it's a lot of data so it takes a lot of memory. I'd like to use the same...
6
by: Sam | last post by:
Hi, I have a datagrid which has (amongst other stuff) 2 comboboxes columns. So far so good. The trick is that when I select a value in my first column, it must updates the items of the combobox in...
6
by: Matt | last post by:
I'm not entirely sure how to describe this issue. I have a number of ComboBoxes in my application which have their text properties bound to a field in a data set. The items loaded in the ComboBox...
0
by: Henrootje | last post by:
I have a form with 29 comboboxes. The are called me.combocg1, me.combocg2, me.combocg3 etc etc What is the best way to empty them? For i = 1 To 29 varCombo = "me.combocg" & i WaardeOnthouden...
2
by: ashishtarlekar | last post by:
Hi all, I have to add comboboxes in the first row of datagridview for mapping the database fields. For e.g. I have to show Id, FirstName, LastName in each comboboxes in the first row. if i select...
2
by: Matt | last post by:
Hi all, me again! :) I've now got an issue with combo boxes. Basically, I have a number of items that I want a user to pick from a single list. It's basically along the lines of: Fruit 1: ...
2
by: Wingot | last post by:
Hey, I have a view to a database that I have created for Client Maintenance. It has a number of fields, but the important ones are Medical Condition, Bill To, and Country. I have a couple of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.