Previous Topic

Next Topic

Inhoudsopgave

Book Index

dsRecord Function

Function Function dsRecord() : data source

Description

Creates a reference to the record data source of the Edit form. If you want to use data aware components on the Edit form you have to initialize the datasource property for each data aware component. The datasource has to refer to the record datasource of the Edit form. This can be achieved by assigning dsRecord to the datasource property.

Parameters

Code Snippet

...

Call InitDataSource

frmEditForm.ShowModal

...

Sub InitDataSource()

dbedtCountryCode.DataSource = frmEditForm.dsRecord

dbedtDescription.DataSource = frmEditForm.dsRecord

dbedtFieldChar.DataSource = frmEditForm.dsRecord

dbchckbxFieldBoolean.DataSource = frmEditForm.dsRecord

idbcalcedtFieldInt.DataSource = frmEditForm.dsRecord

idbcalcedtFieldNumeric.DataSource = frmEditForm.dsRecord

idbcaledtFieldDate.DataSource = frmEditForm.dsRecord

rem etc..

End Sub