Sei sulla pagina 1di 1

=DLookUp("FirstName","Customer","CustomerID=" & [Forms]!

[AccountsDataEntry]![CustomerID])
The DLookUp function finds a value for FirstName found in the Customer table where the
CustomerID from the Customer table is equal to the CustomerID field on
the AccountsDataEntry form.

docmd.beep

Beep

API calls Chap-20


Close

docmd.close (ObjectType,ObjectName,Save)
ObjectType

acForm, acReport

ObjectName

name of form / report

Close Database

docmd.CloseDatabase

Maximize

docmd.maximize

OpenForm
DoCmd.OpenForm_
(FormName,View,FilterName,WhereCondition,DataMode,WindowMode,OpenArgs)

View An acFormView constant that specifies the view that the form will open in.
This is acNormal by default.
_ FilterName The name of a query in the current database.
_ WhereCondition An SQL WHERE clause without the word WHERE.
_ DataMode An acFormOpenDataMode constant that specifies the data entry mode for
the form.
_ WindowMode An acWindowMode constant that specifies the window that the form
opens in.
_ OpenArgs This sets the forms OpenArgs property

Potrebbero piacerti anche