ADO Data control enables users to use Microsoft ActiveX Data Objects (ADO) to immediately create a connection to the database. Describes the design, you can first set the ConnectionString property to a legal connection string, then the RecordSource property is set to a statement for database supervisors to create a connection. You can too set the ConnectionString property to join to define the file name. This file is a
directory
Properties Methods Events Applications CacheSize attribute set property attributes Property (ADO), CommandTimeout Property (ADO), CommandType Property (ADO), ConnectionString Property (ADO), ConnectionTimeout Property (ADO ), CursorLocation Property (ADO), CursorType Property (ADO), LockType Property (ADO), MaxRecords Property (ADO), Mode Property (ADO), Provider Property (ADO), Recordset Property (ADO Data Control), RecordSource Property (ADO file control), Password property (ADO file control), UserName attribute (ADO file control), BackColor, ForeColor property, Height, Width Properties, Left, Top Properties, Tabindex property, Tag properties, Visible property, Align property, DragIcon property DragMode property, CausesValidation property, Orientation property, TabStop Properties, Appearance property, Caption property, HelpContextID Property, Index Property (Control Matrix), Name property, Parent property, Font Properties, Container Properties, Object Properties, ToolTipText property, BOFAction, EOFAction property ,9112.org, WhatsThisHelpID properties. Method UpdateControls usage (ADO data control), Refresh method, SetFocus method,8993.org, Drag Method, Move Method, ZOrder method, ShowWhatsThis method. Events EndOfRecordSet (ConnectionEvent) method (ADO), FetchComplete (RecordsetEvent) method (ADO), FetchProgress (RecordsetEvent) method (ADO), WillChangeField and FieldChangeComplete (ConnectionEvent) method (ADO), WillChangeRecord and RecordChangeComplete (ConnectionEvent) method (ADO), WillMove and MoveComplete (ConnectionEvent) method (ADO) Event Error Event (ADO data control), DagDrop accident, DragOver event, GotFocus event, LostFocus events, MouseDown, MouseUp event, MouseMove event, Validate event. Applications apt create a easy front-end database application form apt area one ADO Data control. (The icon tooltip because the In the In the Then reception F4 to exhibit the In the If you have yet created a Microsoft Data Link document (Data Link document) (. UDL), elect If you use a DSN, then press the If you ambition to build a articulation string, elect After creating the connection string, press ConnectionString property using a string favor the following line to fill: driver = SQL Server; server = bigsmile; uid = sa; pwd = pwd; database = pubs in the property to one SQL expression. For example: SELECT * FROM Titles WHERE AuthorID = 72 to way a chart, should always include a WHERE proviso. If this fails, it will lock the all table, so namely other consumers will be a serious obstacle. On the manner and then location a In its This will be the text box and the ADO Data Control fastened together. In its Click the label of the field to exhibit. For each field you want to way the other reiterate treads 6,7,8. Press F5 to scamper the application. Users can use the ADO Data control four indicator buttons, granting users to reach the beginning of the data, recorded by the end, or among the data log from the disc to variant. In the agenda set ConnectionString, Source, DataSource, and set the DataField property of the following agenda code shows how to set the four properties. Note namely setting the DataSource property to use the Set statement. Private Sub Form_Load () With ADODC1. ConnectionString = Titles Where AuthorID = 7 Open Category: Programming
没有评论:
发表评论