Center Access2007 Form in the middle of access Main Window

  • Follow


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




0
Reply a 12/11/2007 6:51:31 AM

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.


0
Reply petery 12/11/2007 9:30:28 AM


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. 
======================================================




0
Reply petery 12/13/2007 7:51:45 AM

2 Replies
790 Views

(page loaded in 0.054 seconds)


Reply: