473,473 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding a row to a combo box

I have spent all day trying to use MS sample code AddAllToList()
I have followed the instructions exactly but the combo box is always
blank.
If I change the RowSourceType to table/query I get a list (obviously
without the additional row) but when the RowSourceType is AddAllToList
I get a blank list.

1. Set the RowSourceType to AddAllToList
2. Enter in the tag setting the column number, in my case 1 but I have
tried others.

Result blank list.
Can anyone help to throw some light on this please.
I am using Access2K

Alex
Nov 13 '05 #1
3 2446
I should have said that if I put msgboxes or debug.print into the code I do
not get any messages. It does not appear to be even accessing the code when
I select the combo box.
Alec

"Alex" <al********@hotmail.com> wrote in message
news:49**************************@posting.google.c om...
I have spent all day trying to use MS sample code AddAllToList()
I have followed the instructions exactly but the combo box is always
blank.
If I change the RowSourceType to table/query I get a list (obviously
without the additional row) but when the RowSourceType is AddAllToList
I get a blank list.

1. Set the RowSourceType to AddAllToList
2. Enter in the tag setting the column number, in my case 1 but I have
tried others.

Result blank list.
Can anyone help to throw some light on this please.
I am using Access2K

Alex

Nov 13 '05 #2
The RowSource can be a list of values, usually like this:

"Item A";"Item B";"Item C"

If you first extract the RowSource to a variable then re-assign the
RowSource to:

yourVariable & ";"""ItemToAdd""""

and this will add the item to the end of the list.

HTH

Alec Christie
alec_e_christie(at)hotmail(dot)com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
al********@hotmail.com (Alex) wrote in message news:<49**************************@posting.google. com>...
I have spent all day trying to use MS sample code AddAllToList()
I have followed the instructions exactly but the combo box is always
blank.
If I change the RowSourceType to table/query I get a list (obviously
without the additional row) but when the RowSourceType is AddAllToList
I get a blank list.

1. Set the RowSourceType to AddAllToList
2. Enter in the tag setting the column number, in my case 1 but I have
tried others.

Result blank list.
Can anyone help to throw some light on this please.
I am using Access2K

Alex


Alex, are you trying to add a single row to your combobox? If so, you
need the On Not In List event procedure.
David
Nov 13 '05 #4

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

Similar topics

3
by: mal | last post by:
Sorry for repost - system added to another subject for some reason Have tried numerous ideas from the group to solve this one. It is such a simple example that it should be straightforward ! I...
4
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be...
0
by: JL3574 l | last post by:
i have a datagrid with a combo box added in it's columns . the combobox pulls values from a database in it's dropdownlist fashion. my problem is that when i pick a select on the combo box it...
2
by: Jeff Mason | last post by:
I'm observing some strange behavior when I use a bound combo box in conjunction with the combo's anchor property. I define a form which contains just a textbox and a combo box. The text box is...
6
by: vb | last post by:
Hi, I am new to .Net. I am using a Combo Box in my windows forms. I am adding the items by creating the instances and adding the same to the list. My questions/doubts are: 1. If I have 25 to...
1
by: Shawn Yates | last post by:
It has been a while since I have done anything on MS Access and I seem to be a bit rusty. I hope someone could help me solve my issue. I have a form that has multiple combo boxes on it. Each box...
2
by: Wayne | last post by:
I have a combo box and a text box on a form. When I choose a value from the combo box, I want it to be added to the textbox. I'm able to do this by using the following code when I click the combo...
7
by: ewarts | last post by:
Hello all, I'm having an issue adding more combo box to an existing form, please correct me if I'm wrong in my method but i'm copying the combo box above and pasting it below so to have the same...
3
by: =?Utf-8?B?Y2RtdW5veg==?= | last post by:
I have created a sub routine to programmatically add an indefinite number of combo boxes to a form. The combo boxes are bound in code to a view for displaying the available options. This routine...
1
by: Josephbupe | last post by:
Sorry, i didn't know exactly what to name my question. What i need is to create a database for storing office items that will include Desktop computers, Laptops, printers, phones, etc. as...
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
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,...
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...
1
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: 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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.