In order to manipulate the structure of your database and its data from Visual Basic, you must use Data Access Objects (DAO). The CurrentDb method provides a way to access the current database from Visual Basic code without having to know the name of the you have a variable that points to the current database, you can also access and manipulate other objects and collections in the DAO hierarchy.
Together with the GetHiddenAttribute method, the SetHiddenAttribute method provides a means of changing an object's visibility from Visual Basic code. With these methods, you can set or read the Hidden property available in the object's Properties dialog box.
You can set most properties from Visual Basic code.
ほとんどのプロパティは Visual Basic のコードから設定できます。
All host applications have an extensive interface for adding and designing custom toolbars (adding built-in buttons, adding macros as buttons, even adding pop-up controls to toolbars). The design-time changes you'll usually make from Visual Basic code are ones that add or modify combo box controls. Otherwise, working with toolbars in code is almost completely limited to making run-time changes (such as changing the button state, changing the button appearance, changing the button action).
You can set most properties from Visual Basic code. How you set a property depends on whether you are setting it for a Form, Report, or Control object, an ActiveX Data Object (ADO), or for a Data Access Object (DAO). The following topics outline the steps involved for setting properties of each type of object
The GetOption and SetOption methods provide a means of changing environment options from Visual Basic code. With these methods, you can set or read any option available in the Access Options dialog box.
The BuildCriteria method provides the same parsing from Visual Basic code. For example, to return the preceding correctly parsed string, you can supply the following arguments to the BuildCriteria method
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.