473,503 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update Text Box

Whe i use a combobox, and i want it to update it's value i use the code

ME.cbxname.Requery

How can i do that to update the value of a textbox? i have already try
to use the same expression, but it doesn't work :(

Jun 18 '06 #1
6 15608
eclypz wrote:
Whe i use a combobox, and i want it to update it's value i use the code

ME.cbxname.Requery

How can i do that to update the value of a textbox? i have already try
to use the same expression, but it doesn't work :(

Let's say you have a combo box with 3 columns. There is a property
called Column that starts at 0. To reference the 3rd column, it could
be column(2)

In the AfterUpdate event of the combo box you could enter
Me.TextBoxName = Me.ComboboxName.Column(1)
to store the value of the second column into the text box.
Jun 18 '06 #2

salad escreveu:
eclypz wrote:
Whe i use a combobox, and i want it to update it's value i use the code

ME.cbxname.Requery

How can i do that to update the value of a textbox? i have already try
to use the same expression, but it doesn't work :(

Let's say you have a combo box with 3 columns. There is a property
called Column that starts at 0. To reference the 3rd column, it could
be column(2)

In the AfterUpdate event of the combo box you could enter
Me.TextBoxName = Me.ComboboxName.Column(1)
to store the value of the second column into the text box.

Well, is not really that that i want...

What i want is this:

I have a form in which i have one txt box that presents the maximum
value in the table xpto.
to have this informacion, i have a query that give me the maximum, and
then the source in the text box is that maximum.

The value only update when i open the data base, but i want is that
when i click in the button to update the table, in the end of the
actualization that text box will present the new maximum.

Did u understand what i want?

Ah! the data in the table to be presented is date/time.

Jun 19 '06 #3
* eclypz:
salad escreveu:
eclypz wrote:
Whe i use a combobox, and i want it to update it's value i use the code

ME.cbxname.Requery

How can i do that to update the value of a textbox? i have already try
to use the same expression, but it doesn't work :(

Let's say you have a combo box with 3 columns. There is a property
called Column that starts at 0. To reference the 3rd column, it could
be column(2)

In the AfterUpdate event of the combo box you could enter
Me.TextBoxName = Me.ComboboxName.Column(1)
to store the value of the second column into the text box.

Well, is not really that that i want...

What i want is this:

I have a form in which i have one txt box that presents the maximum
value in the table xpto.
to have this informacion, i have a query that give me the maximum, and
then the source in the text box is that maximum.

The value only update when i open the data base, but i want is that
when i click in the button to update the table, in the end of the
actualization that text box will present the new maximum.

Did u understand what i want?

Ah! the data in the table to be presented is date/time.


If the ControlSource of your textbox is something like:
=DMax("Col", "Table")

Add this to the end of the code that updates the table from your button
click.

Me.Recalc

That will cause it to "recalculate" that DMax value and update your text
box.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Jun 19 '06 #4

Randy Harris wrote:
* eclypz:
salad escreveu:
eclypz wrote:

Whe i use a combobox, and i want it to update it's value i use the code

ME.cbxname.Requery

How can i do that to update the value of a textbox? i have already try
to use the same expression, but it doesn't work :(

Let's say you have a combo box with 3 columns. There is a property
called Column that starts at 0. To reference the 3rd column, it could
be column(2)

In the AfterUpdate event of the combo box you could enter
Me.TextBoxName = Me.ComboboxName.Column(1)
to store the value of the second column into the text box.

Well, is not really that that i want...

What i want is this:

I have a form in which i have one txt box that presents the maximum
value in the table xpto.
to have this informacion, i have a query that give me the maximum, and
then the source in the text box is that maximum.

The value only update when i open the data base, but i want is that
when i click in the button to update the table, in the end of the
actualization that text box will present the new maximum.

Did u understand what i want?

Ah! the data in the table to be presented is date/time.


If the ControlSource of your textbox is something like:
=DMax("Col", "Table")

Add this to the end of the code that updates the table from your button
click.

Me.Recalc

That will cause it to "recalculate" that DMax value and update your text
box.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.


It Doesn't work :(

I don't know why...

I have this table with this name T00-Documents and then i have the text
box that had in de controlsource =Max([DateRead]![T00-Documents]), but
with this it always appear an error #Error... so what i did was. Create
a Selection Querie from the Table T00-Documents, and in the querie i
put this. Maximu:Max([DateRead]). Then in the controlsource just wrote
Maximu. And Like this it works.... but it only update when i open the
Form.

Now i don't know how to do :(

Jun 19 '06 #5
"eclypz" <eg*************@gmail.com> wrote in
news:11*********************@g10g2000cwb.googlegro ups.com:

Randy Harris wrote:
* eclypz:
> salad escreveu:
>> eclypz wrote:
>>
>>> Whe i use a combobox, and i want it to update it's value
>>> i use the code
>>>
>>> ME.cbxname.Requery
>>>
>>> How can i do that to update the value of a textbox? i
>>> have already try to use the same expression, but it
>>> doesn't work :(
>>>
>> Let's say you have a combo box with 3 columns. There is a
>> property called Column that starts at 0. To reference the
>> 3rd column, it could be column(2)
>>
>> In the AfterUpdate event of the combo box you could enter
>> Me.TextBoxName = Me.ComboboxName.Column(1)
>> to store the value of the second column into the text box.
>
>
> Well, is not really that that i want...
>
> What i want is this:
>
> I have a form in which i have one txt box that presents the
> maximum value in the table xpto.
> to have this informacion, i have a query that give me the
> maximum, and then the source in the text box is that
> maximum.
>
> The value only update when i open the data base, but i want
> is that when i click in the button to update the table, in
> the end of the actualization that text box will present the
> new maximum.
>
> Did u understand what i want?
>
> Ah! the data in the table to be presented is date/time.
>


If the ControlSource of your textbox is something like:
=DMax("Col", "Table")

Add this to the end of the code that updates the table from
your button click.

Me.Recalc

That will cause it to "recalculate" that DMax value and
update your text box.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.


It Doesn't work :(

I don't know why...

I have this table with this name T00-Documents and then i have
the text box that had in de controlsource
=Max([DateRead]![T00-Documents]), but with this it always
appear an error #Error... so what i did was. Create a
Selection Querie from the Table T00-Documents, and in the
querie i put this. Maximu:Max([DateRead]). Then in the
controlsource just wrote Maximu. And Like this it works....
but it only update when i open the Form.

Now i don't know how to do :(

=Max([DateRead]![T00-Documents]) OR Max([DateRead])

should be Dmax("[dateread]","[T00-Documents]")

Also put in the form's AfterUpdate Event
me.textbox.requery and change textbox to the real name of the
textbox.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 19 '06 #6
* eclypz:

It Doesn't work :(

I don't know why...

I have this table with this name T00-Documents and then i have the text
box that had in de controlsource =Max([DateRead]![T00-Documents]), but
with this it always appear an error #Error... so what i did was. Create
a Selection Querie from the Table T00-Documents, and in the querie i
put this. Maximu:Max([DateRead]). Then in the controlsource just wrote
Maximu. And Like this it works.... but it only update when i open the
Form.

Now i don't know how to do :(


Why didn't you post this to begin with?

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Jun 19 '06 #7

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

Similar topics

2
10543
by: Mark | last post by:
A beginner in this area, I have been able to read a record from a MySQL database and populate an HTML form (wow!). Now, my goal is to allow the user to edit the contents of the form and then...
1
2225
by: revolnip | last post by:
As attached is the code : <% Option Explicit dim lngTimer lngTimer = Timer %> <!--#include file="Connect.asp" --> <!--#include file="Settings.asp" --> <!--#include file="Common.asp" -->
1
1811
by: toedipper | last post by:
Hello, PHP4 and MySql I have the code below, a mixture of handcoded and Dreamweaver genaratd php code. Basically it's an update record form - I load the values from a db and bind text boxes...
0
5797
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
0
2477
by: sdash | last post by:
I'm working on a simple formview screen that should update a SQL Server 2000 record. I'm sure there must be something simple wrong, but when I press update, the screen refreshes and the changes...
5
2586
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
5
2142
by: explode | last post by:
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can...
1
5167
by: Selvakumar | last post by:
hai friends, I am new to .net programming. I did the inserting data into MS-access database but i couldn't able to perform the update command. I used only textbox and command button for inserting...
3
3931
by: Michel Esber | last post by:
Hi all, DB2 V8 LUW FP 15 There is a table T (ID varchar (24), ABC timestamp). ID is PK. Our application needs to frequently update T with a new value for ABC. update T set ABC=? where ID...
2
2611
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to...
0
7202
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
7086
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
7332
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...
1
6991
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
5578
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,...
1
5014
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...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.