C
Chegu Tom
I have a main form NDEForm2 bound to a table with containing ProjectID
I have a subform called spoolweld that is linked to the main form on the
projectid fields. It lists the spools in that project
I have an unlinked subform called NDEWeld that should show detail records
for the spool selected in the spoolweld form.
In the SpoolWeld on Current event I put the following code. The strSQL
works fine but the attempt to change the record source of the NDEWeld form
cannot find the form. I have checked and rechecked spelling. I tried to
use the filter option to filter the records in the third form but I have had
trouble with that too
I am open to anyway to make the third form show details based on the current
record in the second form
Private Sub Form_Current()
Dim strSQL As String
strSQL = "SELECT NDEWelds.ProjectID, NDEWelds.Spool, NDEWelds.Test,
NDEWelds.WeldLetter, NDEWelds.Needed, NDEWelds.Done, NDEWelds.NDEperformed,
NDEWelds.NDEDate, NDEWelds.Weld FROM NDEWelds WHERE Projectid='" &
Me.ProjectID & "' AND Spool ='" & Me.Spool & "'"
Forms!NDEWeld.RecordSource = strSQL
End Sub
I have a subform called spoolweld that is linked to the main form on the
projectid fields. It lists the spools in that project
I have an unlinked subform called NDEWeld that should show detail records
for the spool selected in the spoolweld form.
In the SpoolWeld on Current event I put the following code. The strSQL
works fine but the attempt to change the record source of the NDEWeld form
cannot find the form. I have checked and rechecked spelling. I tried to
use the filter option to filter the records in the third form but I have had
trouble with that too
I am open to anyway to make the third form show details based on the current
record in the second form
Private Sub Form_Current()
Dim strSQL As String
strSQL = "SELECT NDEWelds.ProjectID, NDEWelds.Spool, NDEWelds.Test,
NDEWelds.WeldLetter, NDEWelds.Needed, NDEWelds.Done, NDEWelds.NDEperformed,
NDEWelds.NDEDate, NDEWelds.Weld FROM NDEWelds WHERE Projectid='" &
Me.ProjectID & "' AND Spool ='" & Me.Spool & "'"
Forms!NDEWeld.RecordSource = strSQL
End Sub