473,785 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reading/using rowsource properties in VB6

Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=l ist with values
Rowsource = HOME;SCHOOL;STA TION

What I would like is, one way or the other, to use the items in Rowsource in
a listbox in a VB-Form. I have tried all kind of things and spent days on
the internet, but nothing worked, sadly.
Maybe you can help me, I desperatly need to know howto do this or to be told
it's impossible

Please Help

Thanx
Nov 13 '05 #1
3 1977
"R. de Vos" <hu******@plane t.nl> wrote in message news:<41******* *************** @news.wanadoo.n l>...
Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=l ist with values
Rowsource = HOME;SCHOOL;STA TION

What I would like is, one way or the other, to use the items in Rowsource in
a listbox in a VB-Form. I have tried all kind of things and spent days on
the internet, but nothing worked, sadly.
Maybe you can help me, I desperatly need to know howto do this or to be told
it's impossible

Please Help

Thanx


Much easier if you use a table to store the values... then you can
just use a regular query... or is that not an option?

ie. SELECT Place FROM SomeTable ORDER BY Place;
Nov 13 '05 #2
What You suggest should be an option is i hadn't over 100 columns with
various list-items. So I would have an completly new table with all
list-items stored or I would need over 100 tables with just a a few
list-items.

The main idea behind the way I did it now, is to make it possible for users
to create a simple table with the list-values the would like to use, and use
my frontend to insert de values.
The program will be used by answerlists and serveys.

So If You would know the answer to the question in top of the tree, please
help me

Thanx

"Pieter Linden" <pi********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
"R. de Vos" <hu******@plane t.nl> wrote in message

news:<41******* *************** @news.wanadoo.n l>...
Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=l ist with values
Rowsource = HOME;SCHOOL;STA TION

What I would like is, one way or the other, to use the items in Rowsource in a listbox in a VB-Form. I have tried all kind of things and spent days on the internet, but nothing worked, sadly.
Maybe you can help me, I desperatly need to know howto do this or to be told it's impossible

Please Help

Thanx


Much easier if you use a table to store the values... then you can
just use a regular query... or is that not an option?

ie. SELECT Place FROM SomeTable ORDER BY Place;

Nov 13 '05 #3
"R. de Vos" <hu******@plane t.nl> wrote in message news:<41******* *************** @news.wanadoo.n l>...
Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=l ist with values
Rowsource = HOME;SCHOOL;STA TION

What I would like is, one way or the other, to use the items in Rowsource in
a listbox in a VB-Form. I have tried all kind of things and spent days on
the internet, but nothing worked, sadly.
Maybe you can help me, I desperatly need to know howto do this or to be told
it's impossible

Please Help

Thanx


I think you have to add each item to the listbox one by one in a loop
similar to the way you add a single item to a combobox in Access. I
don't have the code handy or I'd post a sample of how to do this.

James A. Fortune
Nov 13 '05 #4

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

Similar topics

8
20356
by: Vladimir | last post by:
Hello, I have a table in MS Access database. It has one field (with BYTE datatype) that has several properties set in Lookup tab of table Design View. Display Control = Combo Box. Row Source Type = Value List. Row Source = "1; "Above"; 2; "Below"; 3; "Equal"". When I try to SELECT <field> FROM <table> in my C++ application through ADO, I get numeric value of the field. How can I get string representation of this numeric value from the...
0
3537
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the form, I set the rowsources of its, and its subforms', combo boxes in the "Enter" events of the combo boxes. That's the standard trick for not loading the rowsource unless/until the user actually needs the combo box. For example:
3
4572
by: Mark | last post by:
I have a form that contains the following: 2 radio buttons (Name and Number) 1 check box (for Inactive Members) 1 combo box (list of Member names or numbers) I use the radio buttons to populate the (unbound) combo box with Member names or number depending on which button was clicked. In my database I have a field that shows member status (active or inactive). By defalut my sqlstring that sets the rowsource of the combo box only
4
3204
by: Irena | last post by:
Hi all again, Maybe, I'd better try to do this: How can it programmatically get/return the "Row source" or Rowsource property of a generic Table in a generic Access 2K database??? I found an example in VB: me!combobox.RowSource
0
1526
by: Irena | last post by:
Hi all there, Form time to time, I go back to this project of mine that drives me nuts, now. Sometimes ago, I have been suggested to use DAO insted of ADO for getting the "ROWSOURCE" property of an Access table. So it should have worked like this: ....fldName.Properties("RowSource").
4
3175
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. Tables: (abbreviated) TblDivision DivisionID
8
2745
by: sara | last post by:
I am learning Access and programming. I wanted to have the user select the departments for an ad from the list of all departments. Found code (that I could understand) on this site, and it works. But I have 2 quesitons: 1. How can I REMOVE a selection from the Destination List box - and keep the others there? My first code removes ALL from the Source list; this code does nothing. 2. How can I now USE the data - I have to...
11
7460
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Master Report is: Me.RowSource = "TableOrQueryName"
1
3725
by: paulquinlan100 | last post by:
Hi Im having problems getting a column in one of my tables to display the lookup values correctly. The database is split, in the backend the rowsource for this particular field is set to a query of another lookup table, this correctly displays in a dropdown the values i want for that field. However, in the front end the dropdown for this field is blank, when i try to view the table in design mode to set the rowsource i get the
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10357
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10104
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
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 we have to send another system
3
2894
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.