I have created a form (NEW_form) displaying all data as a table, There are only two fields in the underlying table, i.e. AutoIncrement field and a Data field, and only one field (DataField) is on the form. The form is called from a master form, however, it can be accessed as a standalone. Even in standalone mode I cannot convince Base to select the DataField without clicking on said field even though it is the only field on the form. If I just start typing, it does not appear anywhere on said form until I click on the field and start typing. What can I do to convince the macro to select the Data Field? I’ve tried so many methods today, I can’t recall them all.
Sub OpenFrmNEW_FORM
CloseMaster ' - this is a subroutine that closes the MasterForm
mForm = ThisDatabaseDocument.FormDocuments.getByName("NEW_FORM") ' Main Form
mForm.Open
' All works well to this point but I cannot get the column DATA_FIELD TO BE SELECTED AUTOMATICALLY.
mForm.findColumn("DATA_FIELD")
End Sub