Is there maybe a trick
so that when I make a continuous form, the records fit exactly?
Now, without such trick, often the last visible record shows only half
and I have to stretch the form manually, and try, and try once more,
until all the visible records do fit neatly on my form.
thanks for your secrets
Michiel 4 4021
Michiel Rapati-Kekkonen wrote:
>Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form manually, and try, and try once more, until all the visible records do fit neatly on my form.
Here's some air code for that kind of thing:
Sub Form_Load(...
Const M As Integer = 7 'Max rows to display
Dim K As Integer 'min of M and record count
With Me.RecordsetClo ne
.MoveLast
K = .RecordCount
If K M Then K = M
End With
Me.InsideHeight = K * Me.Section(0).H eight _
+ Me.Section(1).H eight + Me.Section(2).H eight
End Sub
If your form does not have the Form Header/Footer sections,
drop the last line.
--
Marsh
Great
thanks!
Michiel
"Marshall Barton" <ma*********@wo wway.comwrote in message
news:bd******** *************** *********@4ax.c om...
Michiel Rapati-Kekkonen wrote:
>>Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form manually, and try, and try once more, until all the visible records do fit neatly on my form.
Here's some air code for that kind of thing:
Sub Form_Load(...
Const M As Integer = 7 'Max rows to display
Dim K As Integer 'min of M and record count
With Me.RecordsetClo ne
.MoveLast
K = .RecordCount
If K M Then K = M
End With
Me.InsideHeight = K * Me.Section(0).H eight _
+ Me.Section(1).H eight + Me.Section(2).H eight
End Sub
If your form does not have the Form Header/Footer sections,
drop the last line.
--
Marsh
"Marshall Barton" <ma*********@wo wway.comschreef in bericht news:bd******** *************** *********@4ax.c om...
Michiel Rapati-Kekkonen wrote:
>>Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form manually, and try, and try once more, until all the visible records do fit neatly on my form.
Here's some air code for that kind of thing:
Sub Form_Load(...
Const M As Integer = 7 'Max rows to display
Dim K As Integer 'min of M and record count
With Me.RecordsetClo ne
.MoveLast
K = .RecordCount
If K M Then K = M
End With
Me.InsideHeight = K * Me.Section(0).H eight _
+ Me.Section(1).H eight + Me.Section(2).H eight
End Sub
If your form does not have the Form Header/Footer sections,
drop the last line.
--
Marsh
Same thing without code:
Window menu: choose 'size to fit form' while in form view,
Then *save* the form. The window size is saved also
Arno R
absolutely cool, without code
but
with code looks just a touch better: the lower line of the fields in the
record is then also visible.
but thanks a lot for the information
Michiel
"Arno R" <ar************ ****@planet.nlw rote in message
news:47******** *************** @text.nova.plan et.nl...
"Marshall Barton" <ma*********@wo wway.comschreef in bericht
news:bd******** *************** *********@4ax.c om...
Michiel Rapati-Kekkonen wrote:
>>Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form manually, and try, and try once more, until all the visible records do fit neatly on my form.
Here's some air code for that kind of thing:
Sub Form_Load(...
Const M As Integer = 7 'Max rows to display
Dim K As Integer 'min of M and record count
With Me.RecordsetClo ne
.MoveLast
K = .RecordCount
If K M Then K = M
End With
Me.InsideHeight = K * Me.Section(0).H eight _
+ Me.Section(1).H eight + Me.Section(2).H eight
End Sub
If your form does not have the Form Header/Footer sections,
drop the last line.
--
Marsh
Same thing without code:
Window menu: choose 'size to fit form' while in form view,
Then *save* the form. The window size is saved also
Arno R This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Boyd |
last post by:
Hi,
I have two very similar forms each with a subform. The main form gets
a few fields from the user and passes this back to a query that the
subform is bound to. The requery is done when the user enters the
last qualifying field on the main form.
In one case this works fine, the subform shows the data the user wants
to update -- which means showing all the data put in previously (ie
showing this via the requery and the continuous...
|
by: Richard Hollenbeck |
last post by:
I have the following query in my form's code:
Private Function Get_Data(fieldNum As Integer)
Dim strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
strSQL = "SELECT & "", "" & AS Student,
activities.activityDescription, studentScores.score FROM groups INNER JOIN
(students INNER JOIN (activities INNER JOIN studentScores ON
|
by: Kathy |
last post by:
What is the standard technique for handling the fields in the following
scenario on a continuous form?
Multiple Divisions. Each Division has multiple Buildings. Each Building has
a Supervisor.
Tables: (abbreviated)
TblDivision
DivisionID
|
by: Richard |
last post by:
A shipment of material is received.
The shipment contains several items.
Each item is assigned an internal tracking number for auditing
purposes and further processed.
The tracking number is mandatory, unique and non-zero, but _cannot_ be
obtained or assigned automatically by Access (due to business rules
).
Table A is the receive table
Columns: AID, ReceiveDate, CompanyID
|
by: bittman |
last post by:
I have code as follows:
Dim conn As New ADODB.Connection
Dim rst As New ADODB.Recordset
conn.ConnectionString = "Provider=MSDAORA;Password=tr7025ds;User ID=system;Data Source=WIN10"
conn.Open
rst.Open "select sid, serial#, username, program, machine, status from v$session where serial#<>1 order by status", conn
| |
by: eighthman11 |
last post by:
using Access 2003 and sql server version 8.0
Hey everyone. Created a text box where the user types in an Inventory
number and it takes them to that inventory number on the contimuous
form. The form is based on a link table to sql server. Here is the
code:
Dim rst As DAO.Recordset
Dim InventoryItem As String
InventoryItem = "'" & "TextBoxValue" & "'"
|
by: Dave |
last post by:
Hello All,
These one may be a bit tricky, and what I'd like to do may not even be
possible. I would love to hear any ideas you guys have for solving
this.
Here is the situation: I have a form that displays the high-level data
for a set of records in continuous forms mode. I have a simple command
button that will open another form with the details of the selected
record.
|
by: truckfin |
last post by:
Hi,
i know there has been a lot of posts on refreshing/requerying comboboxes. But I cant seem to get it to do what i want.
i've got a bound subform set to continuous forms on a bound form that has a combobox that looks up values in another bound form, and in the AfterUpdate Event the following code.
= .(2
OccupantWorkstyle] = .(1)
I want the subform to requery the values in workstyleDefID to ensure any changes are automatically...
|
by: MikiEns |
last post by:
Hi all,
Please excuse me if this is incorrect I am new to MS access and this Forum and appreciate any advice on posting.
I would Like the Tab key on the key board to take the cursor down through a continuous form then across (am happy to do the across bit manually) and continue down the next field. I have looked all over the internet for answers but found only turning the "tab stop" to off. This only works when you only want to go down one...
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |