473,406 Members | 2,867 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.

problem refering to field on tab form

Hi

I have a form with a control tab of 3 tabs. i have a drop down box and i want to add a text box next to it that brings up the second value in the combo box. so when they select something, field next to it will show up with the firstname.

thanks
Jan 24 '08 #1
2 1112
sierra7
446 Expert 256MB
Hi
There are two way of doing this. It sounds as though you combo box is already showing a second column, so the easiest way is to set the Control Source of your TextBox

=[ComboBoxName].[Column](1)

The other way would involve modifying the query for the form by joining the table used as the basis for the combo box, then ensuring that the name of the field to be shown in the text box was included in the select query. The text box then becomes just another bound control.

Hope this helps

S7
Jan 28 '08 #2
jaxjagfan
254 Expert 100+
Sierra7 is right. The easiest way is to refer to the second column of the combobox which is column(1). Make sure the Name value is in the 2nd column of the combo tho.

If it is not possible to include the Name in the combo then you can use a Dlookup function in the textbox - something like this:

=DLookup("[YourRtnFieldName]", "YourTableName", "[YourLookupField] ='" & Me.YourComboBoxName & "'")
Jan 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Robert Rozman | last post by:
Hi, I'm total php newbie and probably have trivial problem. I have following two scripts. First creates web form and should run second script with two arguments. But those two arguments don't...
1
by: David B | last post by:
I have a sub form in datasheet view on a form. I want a query to find the recordid every time a different row on the datasheet has the focus. The query is grabbing data for a combo on a second sub...
4
by: MLH | last post by:
The error occurs in the If-line of this procedure. ReasonTowed is NOT a form, a report or a label control. It is a textbox. I admit that it is a volatile time to be checking a textbox value. And,...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
0
by: Gerry Laenen | last post by:
Hi all, I am currently working on creating an XSD schema. I have an element defined that should be self-refering (child-parent principle). Here is a sample: <GWLC> <GROUPS> <GROUP>...
1
by: adampope | last post by:
Hi Access boffins, I've a form that I want to give users the option of choosing whether certain fields are visible or not. So I've created a table mirroring the original table called...
10
reginaldmerritt
by: reginaldmerritt | last post by:
i wish to change the backcolor of a field on a current record being dispalyed in a 'multiple items' form. However when using me.fieldname01.backcolor = makes refrence to all fields called fieldname01...
1
by: Basket61 | last post by:
I need to use a drop down box based on table Color that, once you click on a value, populates the field in my form In the main database design, I reference the Table Color, both the ID and the...
6
by: Tony Johansson | last post by:
Hello! Assume I have this inheritance see below. I know that a much better alternative is to use generics but I just want to know how things works. According to the documentation in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
0
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,...
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
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...
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,...

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.