I have a listbox with a row source using a union query:
The union query sql:
tblReportsState is a linked table.
Question:
If the db is opened and the linked table is not linked:
how can I then change the listbox row source to only show data in tblReports? I assume I would put the code in the listbox before update event.
Thanks for the look.
Code:
SELECT [quniReports].ReportID, [quniReports].ReportName, [quniReports].ReportCaption, [quniReports].ReportCriteriaFlags, [quniReports].ReportRemote FROM [quniReports] ORDER BY [quniReports].ReportCaption;
Code:
TABLE [tblReports] UNION SELECT * FROM [tblReportsState];
Question:
If the db is opened and the linked table is not linked:
Code:
Const conLINKED_SR As String = "tblReportsState"
If Len(CurrentDb.TableDefs(conLINKED_SR).Connect) = 0 Then
Thanks for the look.
Comment