Just searched google and this website but I couldn't come up with an answer to this.
Basic Information
Software: Microsoft Access 2000
OS: Windows XP Professional SP3
Problem: Error 3008 (locked table, [tblReturnLog]) when trying to modify recordsource of subform.
BuildSQLStr is a function that I've debugged and it's working correctly. It outputs a string containing a SELECT statement with WHERE conditions. Before anyone objects, I need it to be formatted this way (as opposed to using filters) to address potential bandwidth issues.
What am I doing wrong? The parent form, a filter form, is bound to a different table and only a combo box reads the field names of the locked table, thereby enabling an ORDER BY option for the results of the filter. Let me know if there's any more info that you need.
Basic Information
Software: Microsoft Access 2000
OS: Windows XP Professional SP3
Problem: Error 3008 (locked table, [tblReturnLog]) when trying to modify recordsource of subform.
Code:
Private Sub btnSearch_Click() 'Changes recordsource of subform. subform name: frmSubform ' subform source form: [frmTEMP2] Me.frmSubForm.Form.RecordSource = BuildSQLStr End Sub
What am I doing wrong? The parent form, a filter form, is bound to a different table and only a combo box reads the field names of the locked table, thereby enabling an ORDER BY option for the results of the filter. Let me know if there's any more info that you need.
Comment