473,406 Members | 2,698 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,406 software developers and data experts.

Combo box to list recordset

jpr
Hello,

I have a table with the following fields:
FATHERFIRSTNAME
FATHERLASTNAME
CHILDNAME1
CHILDNAME2
CHILDNAME3
CHILDNAME4
Is there a way I can list the above records using a combo in a way like
this :
PAUL SMITH (FATHERFIRSTNAME + FATHERLASTNAME)
JOHN SMITH (CHILD1)
MARY SMITH (CHILD2)
LOUIS SMITH (CHILD3)
ELENA SMITH (CHILD4)

I know that crosstab queries only allow 3 colums therefore was looking
for some way to bypass the problem.

Thank you.

Apr 19 '06 #1
6 1965
Joe
Dear jpr

First thing you need to do is create a unique identifier field. Create
a new field in the first column preferably. Either craft you own unique
idenifiers or set it to autonumber. Once loaded with unique values make
this field the primary key.

Now you are ready to use the combo box using the wizard. It will give
you the option of showing various number of columns and automatically
hiding the new primary field created above.

If gives you the option of adjusting the widths of the columns.

That should do it
From Joe
jpr wrote: Hello,

I have a table with the following fields:
FATHERFIRSTNAME
FATHERLASTNAME
CHILDNAME1
CHILDNAME2
CHILDNAME3
CHILDNAME4
Is there a way I can list the above records using a combo in a way like
this :
PAUL SMITH (FATHERFIRSTNAME + FATHERLASTNAME)
JOHN SMITH (CHILD1)
MARY SMITH (CHILD2)
LOUIS SMITH (CHILD3)
ELENA SMITH (CHILD4)

I know that crosstab queries only allow 3 colums therefore was looking
for some way to bypass the problem.

Thank you.


Apr 19 '06 #2
jpr
thanks.
yes, I am aware of this function, but the problem is that I need to see
my recorset displayed in rows.

Apr 19 '06 #3
Joe
jpr

I guess I don't understand what your problem is.
The combo box will show the record set in rows.

I think you need to clearly define what you problem is

Joe

Apr 19 '06 #4
Joe

Joe wrote:
jpr

I guess I don't understand what your problem is.
The combo box will show the record set in rows.

I think you need to clearly define what you problem is

Joe


I just tried doing what you want to do.

I think you problem is when you click on the combo box
you want the combo box to show the entire record set.
If that is you problem let me know

Joe

Apr 19 '06 #5
jpr
Sorry, you are correct. I did not express myself correctly.
I will try to better explain.
My table has 5 fields:

Father, Mother, Child1, Child2, Child3, Child4, Child5

I have created a form on which I need to place a combo which will
display in different consecutive rows the above records so that when I
click on the cbo data will be displayed not in one row so to reflect
the recordset, but in different rows, meaning each record in a
different row: This is how I would like to to show up:

Father
Mother
Child1
Child2
Child3
Child4
Child5

This is important because users will select the record using the cbo.

Is there a way this can be done? Appreciate your help. Thanks.

Apr 20 '06 #6
Joe
You need to break this down into at least two sub desgin goals
#1) show the results
#2) navigate to the results using the combo box
Set aside your concerns on the combo box
Concetrate on #1 goal

#1) You need to build a form that will display the results.
#1.a) Inorder to do that you need to build a query or table that will
display
the results.
#1.b) read up on how to create a form bound to the results of #1.a)

Only after you have completely solved #1 can you move onto #2

Hope this helps
Joe

Apr 20 '06 #7

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

Similar topics

8
by: rikesh | last post by:
Hi I'm sure this is a very trivial problem! I have a combo bound to a recordset. I was wondering how I can show the value on the page, what the user has selected? The code that I'm using is...
4
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of...
8
by: PeteCresswell | last post by:
I'm looking for some code that makes a list presented in a subform autoscroll in response to the user typing - like a combo box dropdown or a regular ListBox does. I.e. The user is looking at...
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...
8
by: Roy Padgett | last post by:
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
2
by: sara | last post by:
I have a simple form with a combo box on top and then when a record is chosen the remaining 3 fields from the table on the form. My problem is that if I open the form on its own, all is fine. I...
3
by: Phil | last post by:
I've posted this a few times without any luck, hoping for some fresh ideas on this. I'm pretty certain this can be done. I've been using a micrsoft template to create a supplier database called...
5
by: bobdydd | last post by:
Hi Everybody I am currently updating a 2000.mdb to a 2007.accdb and I am trying to use the 3.6 DAO Object Library in the tools>references in the vb editor. This produces an error "Name conflict...
8
by: ZaphodBBB | last post by:
Hi I have a form frmAdd_Equipment. It has a number of combo boxes on it, cboModel, cboSupplier, cboManufacturer, cboEquipment_Type etc. Bcause therer is no existing data to go off I put an ADD...
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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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
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,...
0
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...

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.