473,395 Members | 1,386 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.

Contents of Form Fields not Displaying

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.

Feb 9 '06 #1
3 1593
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*****@earthlink.net> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.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.

Feb 9 '06 #2
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

Feb 10 '06 #3
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*****@earthlink.net> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.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

Feb 10 '06 #4

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

Similar topics

4
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...
2
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...
6
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...
15
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...
1
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...
1
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...
9
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...
8
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...
0
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...
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
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?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.