'frmDatabase.frm
Private Function GetData() As Long
' Function populates controls with Record data
' Returns Error value
On Error GoTo errHandler
' ***** MODIFY *****
With Record
chkBoolean_01.Value = IIf(.Fields(FIELD_01), vbChecked, vbUnchecked)
txtByte_01.Text = Trim$(CStr(.Fields(FIELD_02)))
txtDate_01 = .Fields(FIELD_03)
txtInteger_01.Text = CStr(.Fields(FIELD_05))
txtLong_01.Text = CStr(.Fields(FIELD_06))
txtSingle_01.Text = CStr(.Fields(FIELD_07))
txtString_01.Text = .Fields(FIELD_08)
End With
PopulateArrayList 0
' ***** END MODIFY *****
Exit Function
errHandler:
GetData = Err
End Function
|