473,382 Members | 1,424 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,382 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 3090
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
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.