473,395 Members | 1,558 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,395 software developers and data experts.

textbox not refreshing

T
I'm stuck and would appreciate help. I have a field called plant,
(combobox) that list 4 plants, another field called customercost and
one field for MIcost, GAcost, LAcost and OG cost.
Whenthe user selects a plant and enters a customercost the afterupdate
on the customercost using an if then else statement populates the
correct cost field. The problem is if the user orgianlly enters the
plant as MI MIcost doesn't refrish with change. I've played around
with the refresh statement on te Plant but I keep getting errors.

Sep 18 '07 #1
2 1564
On Tue, 18 Sep 2007 15:40:16 -0700, T <te****@wideopenwest.comwrote:

If I understand you correctly one of the 4 fields should be populated
when TWO fields are populated, and recalculated when ANY ONE of those
two fields' value changes.
So it is not enough to write code in the CustomerCost.Afterupdate.
Rather you would take that existing code and put it in a procedure
that you call from CustomerCost.Afterupdate as well as
Plant.Afterupdate.

-Tom.

>I'm stuck and would appreciate help. I have a field called plant,
(combobox) that list 4 plants, another field called customercost and
one field for MIcost, GAcost, LAcost and OG cost.
Whenthe user selects a plant and enters a customercost the afterupdate
on the customercost using an if then else statement populates the
correct cost field. The problem is if the user orgianlly enters the
plant as MI MIcost doesn't refrish with change. I've played around
with the refresh statement on te Plant but I keep getting errors.
Sep 19 '07 #2
On Sep 18, 5:40 pm, T <tei...@wideopenwest.comwrote:
I'm stuck and would appreciate help. I have a field called plant,
(combobox) that list 4 plants, another field called customercost and
one field for MIcost, GAcost, LAcost and OG cost.
Whenthe user selects a plant and enters a customercost the afterupdate
on the customercost using an if then else statement populates the
correct cost field. The problem is if the user orgianlly enters the
plant as MI MIcost doesn't refrish with change. I've played around
with the refresh statement on te Plant but I keep getting errors.
First of all, the extra cost fields are redundant and create extra
work without additional benefit. A simple SQL query can easily
retrieve the cost of any plant by filtering by plant type.
Second, a lookup should be triggered by the field that it is based
on. If it is based on two or more fields, then a change to any of
these should trigger a routine that a) validates that all of the
required fields have been input, and b) does the lookup.

Sep 19 '07 #3

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

Similar topics

1
by: DevilZAngel | last post by:
Hi all I am writing a simple chat application in asp.net. Problem is that, when other user sends a message, I want my testbox (which shows the messages) to refresh automatically, without using...
2
by: TattyMane bigpond.net.au> | last post by:
asp.net, visual studio 2003, IE6 I have a sample web page that is linked to another page. On the first page, I have a text box, on the second, the first page's text box text is displayed using a...
0
by: Alpha | last post by:
Hi, I have a listbox and a textbox which is bind to the same dataset's column. So the selected item is display in the textbox availbe for editing. When I change the text in the textbox it has...
2
by: Leon Shaw | last post by:
Why Password Textbox do not Save VeiwState doing Refreshing of page and how do I accomplish this?
1
by: Atreju | last post by:
Ok I got form within a c sharp page. Situation: On the form I have a drop downliwst and a textbox, the dropdownlist is populated with products and the textbox has a default vale of the product...
0
by: Waran | last post by:
I need to create a Auto suggests Textboox like in http://www.google.com/webhp?complete=1&hl=en I have completed this using AJAX.NET for Framework 1.1 . I have some design issues after the data is...
0
by: shihab | last post by:
Hai all, How to keep a multiline + vertical scrollbar textbox on the LAST line in Asp.net with c# ,when refreshing page? thanx, sihab
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
2
by: manishamca | last post by:
In dropdown i am retriving value from the backend. For eg: in the dropdown list the value selected are employee id..then i want to disply the emp name,job etc in the textbox. If i select a...
6
by: shankari07 | last post by:
hi guys, I have a form in html which has the city drop down. when clicking the drop down a javascript is called and a file(test.txt) is created and the city is written into the file. Through php...
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: 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...
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
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...

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.