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

Problem with limit on maximum number of textboxes on a form or report in MS-Access

Is there anything I can do about the apparent limit on the number of
textboxes that have calculations as their control source on a form or
report in ms-access? I have a query that pulls together all the fields
from two tables, each with about 20 fields. I then have a statistics
form that has the query as its source and the form has 273 textboxes
on, each with a calculation based on the underlying query values. The
form looks like a spreadsheet with row 1 to 23 and columns A to M.

I have checked all the formulas used in the textboxes and they are
correct. The problem is that when I open the form I get a message in
the lower part of Access window that says "calculating" for a couple of
seconds and then the textboxes fill will "#error". I tried deleting
some of the textboxes to find out which ones were causing the error,
but what I found was that it wasn't particular textboxes formulas that
were the problem, but simply the quantity of them (I deleted half of
them and the form worked. I then deleted the other half and the form
worked again).

What can I do with a form that has 273 or more textboxes on?

Thanks,
Bemused.

Nov 13 '05 #1
11 3087

<ia**********@btopenworld.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...


What can I do with a form that has 273 or more textboxes on?

Thanks,
Bemused.

The only thing you can do is join Access Morons. Send your request for a
membership application to

ac***********@hotmail.com

and receive daily moronic database tips from famous Access Morons such as
Larry Linson, Tony Toews, and other MVPs.


Nov 13 '05 #2
Hoo... why do you have 273 controls on your form? My first guess is
you need to normalize your data

Nov 13 '05 #3
ia**********@btopenworld.com wrote:
Is there anything I can do about the apparent limit on the number of
textboxes that have calculations as their control source on a form or
report in ms-access? I have a query that pulls together all the fields
from two tables, each with about 20 fields. I then have a statistics
form that has the query as its source and the form has 273 textboxes
on, each with a calculation based on the underlying query values. The
form looks like a spreadsheet with row 1 to 23 and columns A to M.

I have checked all the formulas used in the textboxes and they are
correct. The problem is that when I open the form I get a message in
the lower part of Access window that says "calculating" for a couple of
seconds and then the textboxes fill will "#error". I tried deleting
some of the textboxes to find out which ones were causing the error,
but what I found was that it wasn't particular textboxes formulas that
were the problem, but simply the quantity of them (I deleted half of
them and the form worked. I then deleted the other half and the form
worked again).

What can I do with a form that has 273 or more textboxes on?

Thanks,
Bemused.


From Specifications in help on forms it states "Number of controls and
sections you can add over the lifetime of the form or report is 754"
With 273 textboxes, if you were cutting and pasting its possible you
exceeded the count. For example, I may drop 2 Textbox's, with label
onto a blank form. I would then have Text0/2 and Label1/3. If I cut
both of them out and drop a new box/label it is Label5/Text5.

It's possible that with cutting and pasting and who knows what else you
have exceeded the control count.

You might want to open a new form. Then open your current form. Drop
all controls in your current form into the new form. Then drop all the
code into the new form. This will reset the counter of the form back to
most likely a lower count.
Nov 13 '05 #4

"Salad" <oi*@vinegar.com> wrote
From Specifications in help on forms
it states "Number of controls and
sections you can add over the lifetime
of the form or report is 754"
I think you got it, Salad... it's that "over the lifetime" part that is the
kicker. First time I encountered this was on an inherited form in Access 2.0
days -- at least a couple of people had worked on it and they must have done
some serious adding / deleting controls. The only other time was when I was
trying to exactly duplicate a paper form that was to go to a department
where it was to be scanned, and we were charged with making it identical.
Most of the controls on the form were lines and rectangles.

Larry Linson
Microsoft Access MVP

With 273 textboxes, if you were cutting
and pasting its possible you exceeded
the count. . . .
You might want to open a new form.
Then open your current form. Drop
all controls in your current form into
the new form. Then drop all the code
into the new form. This will reset the
counter of the form back to most likely
a lower count.

Nov 13 '05 #5
Hmm, thanks for the suggestion Salad and Larry, but I tried cutting and
pasting into a new form and even tried just half of the textboxes and
it still didn't work. I really not sure what is going on. A decent
error message would be helpful.

Ian

Nov 13 '05 #6
Perhaps some of your calculations could be done in a query. Can you
post your table structures so we can understand a bit more what you're
trying to do?

Nov 13 '05 #7
This is a golf stats database for a golf society. I have one table
called roundTable that has the following fields:
roundID (autonumber primary key),
courseref (integer)
date (date)
teeused (integer)
conditions (text)
hole1score (interger)
hole1fairwayhit (yes/no)
hole1greeninreg (yes/no)
hole1upndownatpmt (integer)
hole1upndownmade (integer)
hole1sandsaveatpmt (integer)
hole1sandsavemade (integer)
hole1putts (integer)....etc for the other 18 holes.

I have a second table called courseTable which has fields like:
courseID (autonumber primary key)
coursename (text)
hole1par (integer)
hole1distance (integer)
hole1handicap (integer)...etc for other 18 holes.

The form pulls in both tables linked by courseref to courseid and I
want it to show lowscore, averagescore, highscore, %fairways hit,
%greens in regulation, %greens after hitting fairway, average putts,
average putts after hitting green in regulation, %up and downs made, %
sandsaves made all for each hole, the first nine holes, the second nine
holes and the total 18 holes. This all adds up to lots of calculations
and lots of textboxes.

I tried doing the calculations in a query but had the same problem with
limitations on how many things a query can calculate.

Can I have different textboxes on the same form linked to different
queries?? That would solve it as I could use several queries, but I do
not know how to do this.

Thanks for the suggestions,
Ian

pe***********@aol.com wrote:
Perhaps some of your calculations could be done in a query. Can you
post your table structures so we can understand a bit more what you're
trying to do?


Nov 13 '05 #8
This is a golf stats database for a golf society. I have one table
called roundTable that has the following fields:
roundID (autonumber primary key),
courseref (integer)
date (date)
teeused (integer)
conditions (text)
hole1score (interger)
hole1fairwayhit (yes/no)
hole1greeninreg (yes/no)
hole1upndownatpmt (integer)
hole1upndownmade (integer)
hole1sandsaveatpmt (integer)
hole1sandsavemade (integer)
hole1putts (integer)....etc for the other 18 holes.

I have a second table called courseTable which has fields like:
courseID (autonumber primary key)
coursename (text)
hole1par (integer)
hole1distance (integer)
hole1handicap (integer)...etc for other 18 holes.

The form pulls in both tables linked by courseref to courseid and I
want it to show lowscore, averagescore, highscore, %fairways hit,
%greens in regulation, %greens after hitting fairway, average putts,
average putts after hitting green in regulation, %up and downs made, %
sandsaves made all for each hole, the first nine holes, the second nine
holes and the total 18 holes. This all adds up to lots of calculations
and lots of textboxes.

I tried doing the calculations in a query but had the same problem with
limitations on how many things a query can calculate.

Can I have different textboxes on the same form linked to different
queries?? That would solve it as I could use several queries, but I do
not know how to do this.

Thanks for the suggestions,
Ian

pe***********@aol.com wrote:
Perhaps some of your calculations could be done in a query. Can you
post your table structures so we can understand a bit more what you're
trying to do?


Nov 13 '05 #9

<ia**********@btopenworld.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
This is a golf stats database for a golf society. I have one table
called roundTable that has the following fields:
roundID (autonumber primary key),
courseref (integer)
date (date)
teeused (integer)
conditions (text)
hole1score (interger)
hole1fairwayhit (yes/no)
hole1greeninreg (yes/no)
hole1upndownatpmt (integer)
hole1upndownmade (integer)
hole1sandsaveatpmt (integer)
hole1sandsavemade (integer)
hole1putts (integer)....etc for the other 18 holes.

I have a second table called courseTable which has fields like:
courseID (autonumber primary key)
coursename (text)
hole1par (integer)
hole1distance (integer)
hole1handicap (integer)...etc for other 18 holes.

The form pulls in both tables linked by courseref to courseid and I
want it to show lowscore, averagescore, highscore, %fairways hit,
%greens in regulation, %greens after hitting fairway, average putts,
average putts after hitting green in regulation, %up and downs made, %
sandsaves made all for each hole, the first nine holes, the second nine
holes and the total 18 holes. This all adds up to lots of calculations
and lots of textboxes.

I tried doing the calculations in a query but had the same problem with
limitations on how many things a query can calculate.

Can I have different textboxes on the same form linked to different
queries?? That would solve it as I could use several queries, but I do
not know how to do this.

Thanks for the suggestions,
Ian

pe***********@aol.com wrote:
Perhaps some of your calculations could be done in a query. Can you
post your table structures so we can understand a bit more what you're
trying to do?

I don't have much idea about golf - so perhaps you will get a better answer.
But as others have pointed out, you have got far too many fields in your
tables and not enough rows. For example, roundTable (if I understand
correctly) has fields "hole1score", "hole2score", "hole3score", etc whereas
you should have fields "holenumber" and "holescore" with 18 rows for each
single row you currently have. In other words, you tables should be long
and skinny, not short and fat.
Nov 13 '05 #10
Thanks for the suggestion. I might look into that if I come across any
further problems or for future databases, but for now I have got the
form working (I'm new to Access and databases in general, and the golf
stats project is how I'm learning).

Turned out there were a couple of problems that were causing the error.
I went back to the calculation in each textbox and when I broke it down
I found that I was using a table field that wasn't included my query. I
added the field to my query and it fixed that textbox, but the whole
form still wasn't working.

I tried reducing the number of textboxes on the form as suggested by
Salad and Larry and it worked, so I put half the textboxes in a new
subform and it all works just fine now.

Many thanks!

Ian

Nov 13 '05 #11
Dear Ian,

Changing your table isn't just a good idea if things don't work. It's
essential in order to maintain a workable database. Particularly if
this is a learning exercise, you would do well to learn proper database
structure.

To oversimplify:
If you have several fields with the same type of data (hole1 whatever,
hole2 whatever, etc.) this compels you to write the same code or query
functions over and over. If you had one table with the specific types
of info you need to know about a hole, (plus roundID) you could query
that table once with the calculations. Your form or report would have
a row for each hole with the calculations, and you could summarize
(add, average etc) at the bottom of the particular game.

You would also be able to compile statistics such as "what is the
average no of strokes on hole 1?" from the whole table, you could break
it down by conditions. etc.

You _might_ be able to have Access restructure the tables for you. I'd
strongly suggest you make a copy of your database and try
tools\analyze\table.

Although one might presume that everyone plays an entire round of golf
(although it must sometimes be otherwise), if you think about other
applications (donors, purchases) you would not want to have a table
with donation1, date1, type1, donation2, date2, type2 etc. What
happens when you run out of fields, and why should you have ten or
twenty empty fields for the guy who only uses one? Clearly this
structure makes not sense, but demands
personID Donationdate donationamt etc.

In other words, any time there can be zero, one or many of something,
it should get its own table. While you might say golf games are
finite, surely there could be 9 or 18 hole rounds?

Good luck!

Nov 13 '05 #12

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

Similar topics

8
by: Randell D. | last post by:
Folks, Sorry for the cross post into multiple newsgroups on this, but html forms processing is supported across all three groups so I was hoping someone might know. I did a check with Google...
10
by: Bing Wu | last post by:
Hi Folks, I have a problem while creating a big table space. It reports error: SQL1139N The total size of the table space is too big Explanation: The size of the current table space is too...
2
by: ozgirl via AccessMonster.com | last post by:
Hi, hopeing someone can help me here... I have a deductions table and form and want to be able to add many deductions to the table by having only a few fields on the form form fields:...
9
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
10
by: Thelma Lubkin | last post by:
My form/subform combination that allows user to display 'ColorSet' records, move to other records via a selector, to add,delete, and edit them, and to manage the related 'Color' records from the...
3
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about...
4
by: Bill | last post by:
Hi, I would be grateful if someone could clarify my rather confused ideas of the 10 connection limit on XP/2000 when its being used as a server. (I realise that XP is really a client op sys with...
0
by: Mark | last post by:
Thanks in Advance. I encountered the 4 MB limit recently while using the export feature of Crystal Reports version 9 Report Application Server which uses a MS SQL Server 2000 as a data source. ...
8
by: Chizl | last post by:
I'm building a web server and having some issues with the TCPListener.Start(BackLog). It doesn't seem to do as expected. I'm using MS Web Stress Tool to test against my web server and when I...
2
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my...
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
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
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
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...
0
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,...
0
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...

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.