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

Opening Access file with the form maximised

I have some questions that are sort of connected. I use Access 2003.

Is it possible to set some properties that can make the Access window
open at a particular size?

Is it possible to make a form open inside the Access window so that it
fills the window completely without borders?

I have seen some databases that open and there is no outside borders and
the forms all work neatly inside. It looks like the database form is
maximised when opened and that the form fills the Access window that
opens at the correct size.

If there is anywhere that I can see some tutorials on this?

My thanks to all

Samuel Tully
Nov 9 '08 #1
2 3087
On Nov 9, 9:40*am, Samuel <notr...@hotmail.comNwrote:
I have some questions that are sort of connected. *I use Access 2003.

Is it possible to set some properties that can make the Access window
open at a particular size?

Is it possible to make a form open inside the Access window so that it
fills the window completely without borders?

I have seen some databases that open and there is no outside borders and
the forms all work neatly inside. *It looks like the database form is
maximised when opened and that the form fills the Access window that
opens at the correct size.

If there is anywhere that I can see some tutorials on this?

My thanks to all

Samuel Tully
Hi,

I cant particularly guess correctly what u want. But you can set the
property of a form to maximise when it opens. To do this, simply
place this code on the open event of the form:

Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub

This opens the form maximised.

Dont know whether this helps.

Thanks.
Nov 10 '08 #2
As far as the Access window is concerned you can use one of several Windows
API functions to manipulate it. e.g MoveWindow

It is declared as follows:

Public Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, _
ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, _
ByVal nHeight As Long, ByVal bRepaint As Long) As Long

The hwnd parameter is the 'handle' of your Access window for which a built
in property exits: Application.hWndAccessApp. You also need to supply the
X, Y, Width & Height you require. To make this work well (e.g. if you want
to centre the Access window) you may need to use other API functions to get
your screen resolution so you can calculate the values for these parameters.

Create a function in a standard module that uses this API.
You can then call this function on opening your database through an autoexec
macro.

HTH


"Samuel" <no*****@hotmail.comNwrote in message
news:bm******************@news-server.bigpond.net.au...
>I have some questions that are sort of connected. I use Access 2003.

Is it possible to set some properties that can make the Access window
open at a particular size?

Is it possible to make a form open inside the Access window so that it
fills the window completely without borders?

I have seen some databases that open and there is no outside borders and
the forms all work neatly inside. It looks like the database form is
maximised when opened and that the form fills the Access window that
opens at the correct size.

If there is anywhere that I can see some tutorials on this?

My thanks to all

Samuel Tully

Nov 11 '08 #3

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

Similar topics

10
by: -DRB- | last post by:
Hi all, I'm very much an amateur designing a page (for free!) for a friend, so any help offered would be hugely appreciated. I'm aiming to open a maximised window (and isn't that fun...) and...
2
by: dixie | last post by:
When I do a mailmerge from Access to Word by automation, sometimes, the Word window does not fully open and can be found up in the very top left hand corner of the screen. Is there a command I can...
9
by: MLH | last post by:
If you have these lines in code on MyForm1... DoCmd OpenForm "MyForm2`" MsgBox "I opened MyForm2" Is it #ALWAYS# true that all form events on MyForm2 will occur before the MsgBox statement...
1
by: Ant | last post by:
I have a form ‘Main’ and it is maximised, on the form is a command button to open another form over the top I always want it to open in a window restored, currently sometimes it opens maximised...
1
by: SteveShanks | last post by:
Hi Al How can I set the size of an mdi child form to fill the parent windows as if it was maximised without actually maximising the form as this causes all my subsequent child forms to be...
4
by: CliffKing | last post by:
I am trying to use Windows Task Scheduler to run a batch file for an already open MS Access database. Below is the syntax to the batch file: Batch file: DailySalesExport.bat REM This runs the...
5
markmcgookin
by: markmcgookin | last post by:
Hi Folks, Happy new year to all! I have two questions here, which I hope will be relatively simple you you guys to answer! 1) Is it possible to stick a line or two of code in a form somewhere...
1
by: sandy21380 | last post by:
Hello, Is there a way of opening an Access form without opening the Access window? Right now when I open the form, the Access window is a lot bigger than the form so I have to resize the Access...
16
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.