Can anyone help me with a script to connect dynamically created fields to an ODBC database (MS Access)? For example a table with multiple fields for Customer Name, Phone Number, Address, etc.
I have several forms that I have connected static fields to MS Access but not dynamically created fields. I would use the FormID as the unique data point.
FormID | Customer Name | Phone Number | Address |
---|---|---|---|
1 | Mr. Jones | 315 999 9999 | 127 Adtkins Dr, Liverpool, NY |
1 | Mrs. Smith | 215 888 4568 | 200 Block Ave, Hardrow, NJ |
What I really need help with is to have the script count the number of instances of Row1 and then script that the rawValues of each field contained in the visible repeatable table 1 Row1 equals the rawValues of the hidden repeatable table 1 Row 1 that are bound to the database columns.
HiddenSubform.Table1._Row1.CustomerName.rawValue = VisibleSubform.Table1._Row1.CustomerName.rawValue;
HiddenSubform.Tabe1._Row1.PhoneNumber.rawValue = VisibleSubform.Table1._Row1.PhoneNumber.rawValue;
DatabaseName.update();
Any help is appreciated!