I have a form with 10 numeric input fields (envision two rows and five
columns). There is a column at the right for a total of each of the
fields on each row. There is also a row with a calculation based on
the two input fields in each column.
When a record is retrieved, the calculated fields should automatically
display the results based on the values in each field. For several of
the calculated fields, this works perfectly. However, for some of
them, they are blank. But, if I put my cursor in the blank fields, the
data is displayed.
It seems to be some kind of screen refresh problem, but the behavior is
very consistent. 3 1615
Use Nz() to tell Access to use a zero for null.
The Control Source of the calculated text box will be something like this:
=Nz([Field1],0) + Nz([Field2],0) + ...
More info:
Common errors with Null
at: http://allenbrowne.com/casu-12.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<rd*****@earthl ink.net> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. . I have a form with 10 numeric input fields (envision two rows and five columns). There is a column at the right for a total of each of the fields on each row. There is also a row with a calculation based on the two input fields in each column.
When a record is retrieved, the calculated fields should automatically display the results based on the values in each field. For several of the calculated fields, this works perfectly. However, for some of them, they are blank. But, if I put my cursor in the blank fields, the data is displayed.
It seems to be some kind of screen refresh problem, but the behavior is very consistent.
Hi Allen, I think the Nz cleaned up some other stuff, but I am still
having a strange problem. The form works correctly pulling fields from
the database. However, some of the lookup fields and some of the
calculated fields work correctly. The others do not show the data
unless I mouse click or tab into the blank cells. At that point, the
data is displayed. The values may either be zero, nonzero or nulls
(now fixed by nz to return be a zero).
Thanks in advance,
Rick Cottle
That could be a range of things, Rick. e.g.:
- Video driver: screen is not updating the values.
- Timing issue: Access is not recalculating at the time you need.
- Dependency: Something has to get done (saved?) in order for the calculated
totals to reflect correctly.
- Bug in Access: There is a timing issue with the display of combos set in
Form_Current where the bound column is zero-width, as described in the 2nd
part of this article: http://allenbrowne.com/bug-06.html
- Issues interpreting the data type: http://allenbrowne.com/ser-45.html
And so on.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<rd*****@earthl ink.net> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. . Hi Allen, I think the Nz cleaned up some other stuff, but I am still having a strange problem. The form works correctly pulling fields from the database. However, some of the lookup fields and some of the calculated fields work correctly. The others do not show the data unless I mouse click or tab into the blank cells. At that point, the data is displayed. The values may either be zero, nonzero or nulls (now fixed by nz to return be a zero).
Thanks in advance, Rick Cottle This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jonathan Strange |
last post by:
I have a website that uses Forms, and if I complete the form fields,
submit the form, realise that there was an error or omission, and then
hit the Back button, the form fields are all empty. This is extremely
frustrating.
However, what's more frustrating is that this behaviour doesn't happen
all of the time - sometimes the field contents will still be there,
and other times the fields will be empty. Also, sometimes the one form
will...
|
by: aarthy |
last post by:
Hi,
Hi,
>
> I have a problem in the display of the ASP screen actually i am
> retrieving and displaying the data from a database when the view
button
> is hit.The contents for display is so long so i want to have a
previous,
> next link on that page so that some 100 records are displayed in each
|
by: Matt K. |
last post by:
Hi there,
I have a form in an Access project that contains a subform which
displays the results of a query of the style "select * from
where = #a certain date#". In the main part of the form
the user can change the date, which will force a requery in the
subform to bring up records from the date selected.
My question is this... The query in the subform is a very simple one,
with only three fields being returned. In the interest of...
|
by: Paul T. Rong |
last post by:
Hi everybody,
This time a very very difficult case:
I have a table "tblStudent", there are 50 students, I also made a form
"frmStudent" based on "tblStudent", now if I don't want to show all the
students in a classical (vertically, from top to bottom) way, but make them
"sitting" in 50 text boxes, 5 rows 10 columns, how to do it?
Thanks in advance.
|
by: aarthy |
last post by:
Hi,
I have a problem in the display of the ASP screen actually i am
retrieving and displaying the data from a database when the view button
is hit.The contents for display is so long so i want to have a previous,
next link on that page so that some 100 records are displayed in each
page.Pls help me.
Thanks for your reply.
| |
by: Dexter |
last post by:
I have an <imgtag like <img alt=none src=http://somesite.com/mypage.aspx>
embedded into an email message. The request returns a gif image to the
browser. What I am unable to do is to access the html contents of the browser
at the moment when this request is made. Request.Browser property gives
browser capabilities not access to the contents of the browser. If someone
know how it can be acheived, I be a happy tropper.
|
by: mosscliffe |
last post by:
I am struggling to find a python example of the scenario - I have.
I have a python script, which generates a page with a search button
(actually an input field).
The data from the above submissions is interrogated and the same
script produces a new search option and the a page of results from the
previous search request. - as done by Google's Main search page.
The user then has the option of a new search or navigating to a
|
by: tess |
last post by:
I have:
table 1 - tblLeadInfo which includes a salesman ID field
table 2 - tbllkpSalesman with all zips in the state and a Salesman
assigned to that area.
I have a form based on table #1 When I enter the zip code in the
form, I'd like the Salesman ID field in tblLeadInfo to fill in
accordingly and also show the salesman name on the form.
I'm sure this is simple, I just can't seem to get it straight in my
|
by: John Kirkpatrick |
last post by:
Hi all,
I am having difficulty displaying records on a frontend MS Access 2000 form using a MySQL backend. The following code works well with the Jet database engine but doesn't work properly using the MySQL backend database. All records are displayed on the form using the Jet, but only one record appears using MySQL. Perhaps it just needs some tweaking to work with MySQL. Any advice would be great. Thanks
Function HelpDesc(HelpFrm As...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |