English 中文(简体)
我如何确保在屏幕中心开设一个人口表格?
原标题:How do I ensure a pop-up form opens in the centre of the screen?

Background

我有一个“2010年访问”数据库,希望在对表格进行更新时,制作一个“人口进步”的屏幕(可以第二次到几分钟)。

我可以建立一个没有边界的民俗表格,并显示我所需要的信息,但我可以把这种表格放在屏幕的中心。

我试图将“Auto Center”(和“Auto Resize”)定为真实的“Yes”,但这种说法似乎没有任何效果。

<>说明: 我把“Pop Up”设定为真实的“Pop Up”。

Question

我如何能够在2010年“MS Access”的屏幕中心打开一个人口表格?

最佳回答

当你打开人口表格时,你可以做些什么。

DoCmd.MoveSize x, y 

x and y are the x,y co-ords of the first eiler of the form

问题回答

我可能已经找到一种解决办法,利用管理系统接入如何尽量扩大和恢复窗口。

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

这对我来说,这似乎使人口接近中心。 它总是在混居中心拥有土地。

www.un.org/Depts/DGACM/index_spanish.htm 主要的屏幕:

Here you can find a way to get the screen size of the primary screen: How to retrieve screen size/resolution in MS Access VBA to re-size a form

在你开放之后,你可以使用你手法。

DoCmd.MoveSize right, down, width, height

• 转播主要屏幕上的人群。

<><>Arguments

Name Required/Optional Data Type Description
Right Optional Variant The new horizontal position of the window s upper-left corner, measured from the left edge of its containing window.
Down Optional Variant The new vertical position of the window s upper-
Width Optional Variant The window s new width.
Height Optional Variant The window s new height.
YourRightArg = (ScreenWidth / 2) + (PopupFormWidth / 2) 
YourDownArg = (ScreenHeight / 2) + (PopupFormHeight / 2) 

www.un.org/Depts/DGACM/index_spanish.htm 我的个人解决办法

我用表格驱散我的人。 左上和顶指的是主动的“见窗”,而不是主要屏幕。

Sub Move(Left, [Top], [Width], [Height])
Member of Access.Form




相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签