Center Access2007 Form in the middle of access Main Window

A

a

Thank You

Is there any easy way to center access 2007 forms in the middle of the
screen (Monitor) or access main window.

and give me good result
 
P

Peter Yang[MSFT]

Hello,

I think there is no built in feature to achieve this goal. You may need to
create a new form and configure it as the main window. You could enumerate
forms and create buttons etc to open forms from this main form. For
example, you could use hte following code enumerate forms in your database:


Dim db As Database
Set db = CurrentDb
Set cntContainer = db.Containers("Forms")

For Each doc In cntContainer.Documents

StrDocName = doc.Name
Print StrDocName
Next doc

You could use CreateControl function to create buttons dynamically.

298174 ACC2000: Sample Code to Import All Database Objects
http://support.microsoft.com/?id=298174

210595 ACC2000: How to Use the CreateControl() and CreateReportControl()
Functions
http://support.microsoft.com/default.aspx?scid=kb;EN-US;210595


If you have any comments or feedback, please feel free to let's know. Thank
you.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Yang[MSFT]

Hello,

I'm just checking on the status of this issue. Please don't hesitate to let
us know if you need further assistance.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

======================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top