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

display textbox in continuous form

hi all!!
i get small trouble in display a text box.
My text box will be show a value string base on my combo box choice.
But text box always get the same value when i choose a new value in combo
box.
ex:
combo box---text box
AA 123<--change 456<--change 789
BB 456 <--change 789
CC 789
how can i fix the value of text box after choosing value of combo box ?
Pls help ?
i showed this matter but maybe i showed it in hard words so i didnt get
any answer.
thanks !
Luan from VietNam
Oct 3 '06 #1
7 2811
On Mon, 02 Oct 2006 23:38:43 -0400, "luanhoxung" <lu********@yahoo.comwrote:
>hi all!!
i get small trouble in display a text box.
My text box will be show a value string base on my combo box choice.
But text box always get the same value when i choose a new value in combo
box.
ex:
combo box---text box
AA 123<--change 456<--change 789
BB 456 <--change 789
CC 789
how can i fix the value of text box after choosing value of combo box ?
Pls help ?
i showed this matter but maybe i showed it in hard words so i didnt get
any answer.
thanks !
Luan from VietNam
In the AfterUpdate event of the combo put -

Me.MyTextBox.Requery

Change MyTextBox to the name of your control.
Wayne Gillespie
Gosford NSW Australia
Oct 3 '06 #2
thanks!
but it seem not effect.
any action for this ?
waiting any replying ?!
Luan from VietNam

Oct 3 '06 #3
Have you got anything in the Controlsource of the textbox?

if [controlname].requery doesn't seem to work, will me.recalc do?

luanhoxung schreef:
hi all!!
i get small trouble in display a text box.
My text box will be show a value string base on my combo box choice.
But text box always get the same value when i choose a new value in combo
box.
ex:
combo box---text box
AA 123<--change 456<--change 789
BB 456 <--change 789
CC 789
how can i fix the value of text box after choosing value of combo box ?
Pls help ?
i showed this matter but maybe i showed it in hard words so i didnt get
any answer.
thanks !
Luan from VietNam

--
Bas Cost Budde
Holland
www.heuveltop.nl/BasCB/msac_index.html
Oct 3 '06 #4
luanhoxung wrote:
hi all!!
i get small trouble in display a text box.
My text box will be show a value string base on my combo box choice.
But text box always get the same value when i choose a new value in combo
box.
ex:
combo box---text box
AA 123<--change 456<--change 789
BB 456 <--change 789
CC 789
how can i fix the value of text box after choosing value of combo box ?
Pls help ?
i showed this matter but maybe i showed it in hard words so i didnt get
any answer.
thanks !
Luan from VietNam

You have a combo. It has 3 choices; AA, BB, CC. When the combo is
updated, you want to stuff a string into a text box.

Where does the string come from? From the combo? If so, we'll assume
your combo is multicolumn. The Column Index starts at 0. So if there
are 3 columns in a row, ex:
AA 123 Hello
then AA would be column0, 123 would be column1, and Hello column2

In this case, in your AfterUpdate event for the combo box, you could do
something like
Me.Textbox = Me.ComboBox.Column(1)
to stuff 123 into the text box.

For what it's worth, you can update the Text box from the AfterUpate
event of the combobox.
Oct 3 '06 #5
good everning !
my textbox(unbound control)just display the text string of 1 field. its
controlsource is nothing.
any help with appreciated.
Luan

Oct 3 '06 #6
hi Salad !!
my string of text box from 1 field of table.
and noted that my textbox just display a string for the users in viewing.
it's not be store in any field.
thanks ur reply !
Luan from VietNam

Oct 4 '06 #7

luanhoxung wrote:
hi Salad !!
my string of text box from 1 field of table.
and noted that my textbox just display a string for the users in viewing.
it's not be store in any field.
thanks ur reply !
Luan from VietNam
It sounds like you are displaying human readable text based on the
value in the combination box.

As noted, you can use the Value property of the combination box to
execute a DLookup function and provide the data to the text box or you
could just set the RecordSource of the combination box to something
like:

Select MyTable.FieldIdentifier, MyTable.[Field you want the user to
see]
FROM MyTable;

and set the combination boxes's RowSourceType property to Table/Query,
the ListWidth property to 0";1", where the 1" is equivalent to whatever
space you need to see the entire field that the user will see on the
screen, and the BoundColumn property to 1.

This way your user will see the human readable value even though the
actual value of the combination box will be equivalent to
FieldIdentifier.

If you decide to use a seperate control to display the human readable
value, I would use a Label and set its Caption property to the human
readable value or use a TextBox and set its Locked and TabStop
properties to 'No'.

Oct 4 '06 #8

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

Similar topics

1
by: Robert | last post by:
Need some help with this please. Is there a way to display more than one record at a time on a popup form? I have a main form that has a button that triggers a popup form that is a continuous...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
5
by: sparks | last post by:
After trying a combo box to do this. its tied to a lookup table name value yes 1 no 0 they wanted to be able to type in a 1 but display a yes in the field. and store a 1 in the...
2
by: rn5a | last post by:
The different Validation controls like RequiredFieldValidator, RangeValidator etc. have a property named Display. This property can have 3 values - Dynamic, Static & None. What's the difference...
4
by: vidiot | last post by:
I am trying to create a subform that will display images related to the parent form. The subform is a continuous form as there will be several images that relate to the parent form. I checked...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
3
by: Richard | last post by:
How is the result of query placed in a unbound textbox ? Suppose CriteriaLookups has columns TableName, KeyColumn, KeyValue, DataColumn Foo,x,11,xhat Bar,z,3,xyzzy And
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
2
by: robertng90025 | last post by:
I'm having a problem with MS Access 2003 and its conditional formatting. I have textboxes on a continuous form whose left and right margins are set to 0.03 inches. Based on each textbox's...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.