473,385 Members | 1,622 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.

Populate text box from selection keeping navigation working

Hi,

Another newbie with a question that I hope someone can point me in the right
direction.

The goal is to populate a text box with data according to the selection in a
combo box while still being able to navigate the records one by one.

The combo box record source is a table/query asking for the ID, Subj, Title,
CourseGoals from one table and displays Column 1. I've set up the text box
source to display Column 4 of the combo box (CourseGoals). All seems to be
working well, however, the navigation does not work.

I do not have a record source set up for the form and when I did, it didn't
make any difference.

Any suggestions?

Thanks,

Cindi

Nov 13 '05 #1
1 2010
Cindi wrote:
Hi,

Another newbie with a question that I hope someone can point me in the right
direction.

The goal is to populate a text box with data according to the selection in a
combo box while still being able to navigate the records one by one.

The combo box record source is a table/query asking for the ID, Subj, Title,
CourseGoals from one table and displays Column 1. I've set up the text box
source to display Column 4 of the combo box (CourseGoals). All seems to be
working well, however, the navigation does not work.

I do not have a record source set up for the form and when I did, it didn't
make any difference.

Any suggestions?

Thanks,

Cindi


You display 4 values but mention Column1. And you want to display
Column4. So I may not fully grasp your question but...

I created a combo box with a value list called Combo0. The values are
1 One
2 Two
3 Three

In the OnClick event I entered
Private Sub List0_Click()
MsgBox Me.Combo.Column(1)
End Sub

Now if I select 2, I get a messagebox "Two"

Let's say you have 4 columns. Column counts start at 0 to the number of
rows minus 1. It's weird, but that's the way it goes.

So in your case you'd want to access Column3.

You know, you could make the Combo the column the field's control
source. For example, if in your table you have a field called
CourseGoals, you could make the combo's control source CourseGoals.

Now, you would need to store the correct value into the field. To do
so, you would go to the Data tab of the Combo and select the column 4 to
store that value (the columns start at 1 instead of 0...it's weird, but
that's the way it goes) and in the Format tab set the column count to 4
and the column widths to whatever. I usually set the ListWidth to the
sum of the column widths.

One other thing, if you set ColumnHeading to Yes, the heading is Row0.
Anyway, you can find more into in Online help. Some other things to
look at in help are ListIndex, ItemData, ListCount and for Listboxes add
Selected and MultiSelect.

Nov 13 '05 #2

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

Similar topics

28
by: A.Translator | last post by:
I am still struggling with an unordered list (http://www.xs4all.nl/~hogen/TaalVlinder/). The top navbar contains 4 divs with each an ul, and no padding or margins. But I get far too much...
4
by: godber | last post by:
I need to populate text boxes for instance with employee information using their unique employee works number selected from a combo box. Can anyone help, I am told thru visual basic this can be...
1
by: (Pete Cresswell) | last post by:
I'm using a subform as a navigation list. On the left side of the screen is a subform containing people's names. The right side of the screen is loaded with information about the...
14
by: Barney | last post by:
How can I populate a textbox from a dataview? I have a dataset i'm filtering on and i want to populate several textboxes based on that filter. How can i get that to work? I've tried: ...
11
by: thom | last post by:
Hello everybody, Here is a little javascript that gives me the mouse's x and y coordinates. Now, i'd like to be able to make selection(s) rectangle(s) on a given image with it. And then,...
1
by: Luke | last post by:
Scenario - There's a file called TEST.TXT Pagebreak characters in the TEXT.TXT will be used to split the content of text file into multiple pages. A Navigation control (...
4
by: whamo | last post by:
I have the need to populate a field based on the selection in a combo box. Starting out simple. (2) tables tbl_OSE_Info and tbl_Input; tbl_OSE_Info has three fields: Key, OSE_Name and OSE_Wt...
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
2
by: Ronald | last post by:
I hope somebody can help. I can't get into the specifics of my project, but I'll try to create a simple example: tblVehicle * VIN (text box) * Make (text box) * Model (text box) frmRepair
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
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
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...

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.