472,780 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 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 1981
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
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.