You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClassDataAccess is a class for connecting to SQL Server or accdb table from MicrosoftAccess Form and displaying / saving data in controls.
Using SQL Server for the database allows you to place controls on forms and connect to tables beyond the Access field limit of 255.
(There is a limit of 754 controls that can be placed on an Access form)
The control source of the control is unbound.
ClassDataAccess uses transactions to store data.
● When there are multiple subforms placed on a form, new / edit / save of the parent table and multiple subtables can be processed in a single bundle using transactions.
● Many controls that connect to multiple tables can be placed on one form, and transactions can be used to process new / edit / save in a single bundle.
You can operate the data by arranging the edit button, save button, etc. on the form.
The sample program has three forms.
Form / subform support
Supports multiple tables
SQL Server table support
The original table that was connected to SQL Server in the sample has 310 fields. All fields are not visible in the accdb table design. You can manipulate the data by placing controls for all fields on the form. In the sample, 262 controls are placed.
For subform, create and use the table in this accdb as a temporary table for both accdb and SQL Server. "DT_" and "DTCOPY_" are added to the temporary table name. This limits the number of fields in the subform to 255.
To connect a control on a form to a table field, write the field name and data type in the control's tag. You can read and write with just this.
Describe the predetermined items below.
Tables and subtables have required fields.
The text box on the form has required fields.
During programming, there are conventions for initializing a class.
The control tag description has a format.
On the form, there is only one control for each field.
others
(used Google Translate)
Releases -> Access 2files -> (ClassDataAccess.accdb and DB.accdb) To use ClassDataAccess.accdb, relink to the tables in DB.accdb