I have a problem with a subform that is used on two separate tabs. Subform names are:
Tab2EstimatedActualDelta and Tab1EstimatedActualDelta
The forms show data in Table Format
I've developed the code that changes the recordsource depending on the tab selected. It is:
When I open the db, one of the two forms has the error "#Name?" in a Field called TotalImages. Both queries used for the subform recordsource have a field with the same name. The only way to get the data to show correctly is to go into the "LayOut" View and change the Recordsource for that field from TableImages to TableImages. Both forms will display data correctly until the next opening and again, one of the two forms has the error.
Anyone have any ideas?
Thanks
TC
Tab2EstimatedActualDelta and Tab1EstimatedActualDelta
The forms show data in Table Format
I've developed the code that changes the recordsource depending on the tab selected. It is:
Code:
Private Sub MainFormTabCtl_Click()
If Me!MainFormTabCtl.Value = 2 Then
Me!Tab2EstimatedActualDelta.Form.RecordSource = "1733_EOM Query 2"
ElseIf Me!MainFormTabCtl.Value = 1 Then
Me!Tab1EstimatedActualDelta.Form.RecordSource = "1721_EOM Query"
End If
End Sub
Anyone have any ideas?
Thanks
TC