다음을 통해 공유


DoCmd.GoToPage Method (Access)

Carries out the GoToPage action in Visual Basic. .

Syntax

.GoToPage(PageNumber, Right, Down)

A variable that represents a DoCmd object.

Parameters

Name

Required/Optional

Data Type

Description

PageNumber

필수

Variant

A numeric expression that's a valid page number for the active form. If you leave this argument blank, the focus stays on the current page. You can use the right and down arguments to display the part of the page you want to see.

Right

선택

Variant

A numeric expression that's a valid horizontal offset for the page.

Down

선택

Variant

A numeric expression that's a valid vertical offset for the page.

Return Value

Nothing

Remarks

The units for the right and down arguments are expressed in twips.

If you specify the right and down arguments and leave the pagenumber argument blank, you must include the pagenumber argument's comma. If you don't specify the right and down arguments, don't use a comma following the pagenumber argument.

The GoToPage method of the DoCmd object was added to provide backwards compatibility for running the GoToPage action in Visual Basic code in Microsoft Access 95. It's recommended that you use the existing GoToPage method of the Form object instead.

참고 항목

개념

DoCmd Object Members

DoCmd Object