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

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=list with values
Rowsource = HOME;SCHOOL;STATION

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 1958
"R. de Vos" <hu******@planet.nl> wrote in message news:<41**********************@news.wanadoo.nl>...
Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=list with values
Rowsource = HOME;SCHOOL;STATION

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********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"R. de Vos" <hu******@planet.nl> wrote in message

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

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=list with values
Rowsource = HOME;SCHOOL;STATION

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******@planet.nl> wrote in message news:<41**********************@news.wanadoo.nl>...
Hi all you experts,

I have a 'small' problem

In a mdb I have a column called "PLACE"
its value type = text
rowsourcetype=list with values
Rowsource = HOME;SCHOOL;STATION

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
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...
0
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...
3
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...
4
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...
0
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...
4
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. ...
8
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....
11
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
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.