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

Form shrinks vertically

Lyn
Hi,
I have a form which is opened from a button on another form. The form is
used to display a list of records from a recordset in Continuous Mode. It
is sized vertically to display about 25 rows and has a vertical scrollbar.
This form has been working perfectly for weeks.

However, I must have done something recently because now the detail section
displays only one row at a time. That is, the form has shrunk vertically to
about 3
cm height. Property Can Grow is set to Yes, and Can Shrink to No.

In Design View, the form still displays full height. If I go from Design
View directly to Form View, it still retains full height and displays up to
25 rows. However, if I open the form via the button, it shrinks back to a
display height of one row. All the data is there, I just have to scroll a
row at a time to see it all.

The button on the other form generates a recordset (which is Public and
accessible from either form) and then does:

DoCmd.OpenForm "frmPersonList", , , , acFormReadOnly

I cannot figure out what I might have done to screw this up, seeing as it
was working as designed weeks ago. Can anyone see the problem?

TIA for any help.

--
Cheers,
Lyn.

Nov 13 '05 #1
9 3947
Lyn,
Have you tried to open the form in design view and *save* the form again ?

--
Hope this helps
Arno R
"Lyn" <lh******@ihug.com.au> schreef in bericht news:d2**********@lust.ihug.co.nz...
In Design View, the form still displays full height. If I go from Design
View directly to Form View, it still retains full height and displays up to
25 rows. However, if I open the form via the button, it shrinks back to a
display height of one row. All the data is there, I just have to scroll a
row at a time to see it all.

Nov 13 '05 #2
Lyn
Thanks Arno. Yes, many times -- but no joy. Any other thoughts?

--
Cheers,
Lyn.
"Arno R" <ar****************@tiscali.nl> wrote in message
news:42**********************@dreader2.news.tiscal i.nl...
Lyn,
Have you tried to open the form in design view and *save* the form again ?

--
Hope this helps
Arno R
"Lyn" <lh******@ihug.com.au> schreef in bericht
news:d2**********@lust.ihug.co.nz...
In Design View, the form still displays full height. If I go from Design
View directly to Form View, it still retains full height and displays up
to
25 rows. However, if I open the form via the button, it shrinks back to a
display height of one row. All the data is there, I just have to scroll a
row at a time to see it all.

Nov 13 '05 #3
"Lyn" <lh******@ihug.com.au> wrote in message
news:d2**********@lust.ihug.co.nz...
Thanks Arno. Yes, many times -- but no joy. Any other thoughts?


That's what I was going to suggest as well. A continuous view form's height
should be established by setting the window height in design view. However; I
usually find that I have to make some other design change prior to saving to get
the size to "stick". I'll make a label one tick wider or move a hidden control
before saving.

How is the size if you open from the db window instead of from your button?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
Lyn

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:GZ****************@newssvr30.news.prodigy.com ...
"Lyn" <lh******@ihug.com.au> wrote in message
news:d2**********@lust.ihug.co.nz...
Thanks Arno. Yes, many times -- but no joy. Any other thoughts?


That's what I was going to suggest as well. A continuous view form's
height should be established by setting the window height in design view.
However; I usually find that I have to make some other design change prior
to saving to get the size to "stick". I'll make a label one tick wider or
move a hidden control before saving.

How is the size if you open from the db window instead of from your
button?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Rick,
If I open from the DB window, I get the same small size. It is only if I
start in Design View and press the Form View button that the form opens full
size.

I must have done something recently that has caused this because the form
was working fine for weeks. But although I have tried backtracking to find
the cause, it still eludes me.

There seems to be no way to set the form height other than by dragging the
form vertically in Design View and saving it. Ie, no Height property
(except for the height of a single line in the Detail section). But for
some reason dragging vertically doesn't stick in Form View.

--
Cheers,
Lyn.
Nov 13 '05 #5
"Lyn" <lh******@ihug.com.au> wrote in message
news:d2**********@lust.ihug.co.nz...
Rick,
If I open from the DB window, I get the same small size. It is only if I
start in Design View and press the Form View button that the form opens full
size.

I must have done something recently that has caused this because the form was
working fine for weeks. But although I have tried backtracking to find the
cause, it still eludes me.

There seems to be no way to set the form height other than by dragging the
form vertically in Design View and saving it. Ie, no Height property (except
for the height of a single line in the Detail section). But for some reason
dragging vertically doesn't stick in Form View.


Is the form still in continuous mode (you can see more records after opening by
dragging the lower frame border down), or has it reverted to single view?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #6
Lyn,
What version of Access is this ? Corruption here ?
If the problem persists I would create a new form, copy and paste the controles and just see how this form 'acts'.
If it's allright you can also copy the form's code.

Arno R
If I open from the DB window, I get the same small size. It is only if I
start in Design View and press the Form View button that the form opens full
size.

I must have done something recently that has caused this because the form
was working fine for weeks. But although I have tried backtracking to find
the cause, it still eludes me.


Nov 13 '05 #7
Lyn
Arno, Rick,
Firstly, to answer your questions: Access 2003, and the form remains in
Continuous Mode. Dragging the shrunken form vertically exposes all the
missing records.

Anyway, I have found the problem and have a workaround fix, although I am
not sure I understand what is going on.

I did what I should have done from the start -- I went back to a saved
version of the form from a time when it was working OK and did a comparison
of form properties, one by one. There had been a number of accumulated
changes, but the one which "caused" the problem was RecordSource. In the
newer "faulty" form, RecordSource was blank. Let me explain...

Originally the form listing was based on a query from a single table, and
the table name was set as the RecordSource. All worked OK. With further
development, the record source for the form became a union of queries from
two separate tables. This query is developed in the calling form and is
already available as a record set when the problem form is called. So when
I now open the latter form, I set the form's Recordset property to the
existing recordset. This saves exporting the query's rather complex SQL
from the calling form to the problem form (as OpenArgs?) to be set as its
RecordSource and, since the recordset is already in memory, saves
duplicating the query in the child form.

According to the Help file, setting the Recordset property of a form is
supposed to update the form's RecordSource property accordingly. So, it
seemed logical to delete the old RecordSource value from Design Mode (ie the
single table) as it was no longer valid. But doing so seems to be what
caused the shrinking problem. Anyway, my workaround for now is to restore
the old table name as the form's default RecordSource value, even though it
is not used.

Why would this cause the form to shrink? (BTW, I set the Recordset property
in the Open event -- also tried using Load event, no difference.)

Thanks again for your help.

--
Cheers,
Lyn.

"Arno R" <ar****************@tiscali.nl> wrote in message
news:42**********************@dreader2.news.tiscal i.nl...
Lyn,
What version of Access is this ? Corruption here ?
If the problem persists I would create a new form, copy and paste the
controles and just see how this form 'acts'.
If it's allright you can also copy the form's code.

Arno R
If I open from the DB window, I get the same small size. It is only if I
start in Design View and press the Form View button that the form opens
full
size.

I must have done something recently that has caused this because the form
was working fine for weeks. But although I have tried backtracking to
find
the cause, it still eludes me.

Nov 13 '05 #8
"Lyn" <lh******@ihug.com.au> schreef in bericht news:d2**********@lust.ihug.co.nz...
According to the Help file, setting the Recordset property of a form is
supposed to update the form's RecordSource property accordingly. So, it
seemed logical to delete the old RecordSource value from Design Mode (ie the
single table) as it was no longer valid. But doing so seems to be what
caused the shrinking problem. Anyway, my workaround for now is to restore
the old table name as the form's default RecordSource value, even though it
is not used.

Why would this cause the form to shrink? (BTW, I set the Recordset property
in the Open event -- also tried using Load event, no difference.)


Just a guess: AllowAdditions false ?
If AllowAdditions =False then
Access is trying to be too 'helpful' here ... no records to show >> no detail
else
I don't have a clue also ...
end if

Anyway, glad you solved your case

Arno R
Nov 13 '05 #9
Lyn
Allow Additions was False. Unfortunately changing it to True still required
a dummy value in RecordSource to work. Thanks for all the help though.

--
Cheers,
Lyn.

"Arno R" <ar****************@tiscali.nl> wrote in message
news:42**********************@dreader2.news.tiscal i.nl...
"Lyn" <lh******@ihug.com.au> schreef in bericht
news:d2**********@lust.ihug.co.nz...
According to the Help file, setting the Recordset property of a form is
supposed to update the form's RecordSource property accordingly. So, it
seemed logical to delete the old RecordSource value from Design Mode (ie
the
single table) as it was no longer valid. But doing so seems to be what
caused the shrinking problem. Anyway, my workaround for now is to restore
the old table name as the form's default RecordSource value, even though
it
is not used.

Why would this cause the form to shrink? (BTW, I set the Recordset
property
in the Open event -- also tried using Load event, no difference.)


Just a guess: AllowAdditions false ?
If AllowAdditions =False then
Access is trying to be too 'helpful' here ... no records to show >> no
detail
else
I don't have a clue also ...
end if

Anyway, glad you solved your case

Arno R
Nov 13 '05 #10

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

Similar topics

1
by: Scott M | last post by:
Hi, I am writing a small game that is using a form 800 * 600. The form can be scrolled vertically up to a height of 1200 (basically the form can be scrolled down one screen vertically). The...
2
by: Woof-Woof | last post by:
Hi, I have an application which displays a form with bar graph data on it. What I need to do is string 30 of these bar graph forms vertically in a picture box or some other container so I can...
11
by: John Baker | last post by:
Hi: I have a form which contains the following entry ( one element on each line) Name Address line 1 Address line 2 city, state, zip In many cases there is only ONE address line filled in...
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...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
2
by: blah blah blah | last post by:
I'm trying to make a form that can be sized vertically but not horizontally. Any pointers? First attempt was to set the form's FormBorderStyle = Sizeable set the form's MaximumSize.Width to...
4
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
6
tdw
by: tdw | last post by:
the View Orders form in my Access database has a Print button on it. It has other buttons too, like Edit etc. These buttons used to be at the bottom of the form laid out horizontally, but this was...
10
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... We've been trying to migrate our asp.net apps off older, underpowered hardware to newer, bigger boxes but when we do, we see our databases start to melt. When I started to look into it,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
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,...

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.