G
Guest
Hi All
I can't work out why this code doesn't work:
Private Sub List0_DblClick(Cancel As Integer)
Dim strSQL As String
Dim frmS As Form
strSQL = "SELECT tblBOMSOs.*, tblBOMSOLines.* " _
& "FROM tblBOMSOs INNER JOIN tblBOMSOLines " _
& "ON tblBOMSOs.BOMSOID = tblBOMSOLines.BOMSOID " _
& "WHERE tblBOMSOs.BOMSOID = " & Me.List0.Value
Me.Visible = False
Set frmS = New Form_frmSOEntryTEST
With frmS
.RecordSource = strSQL
.Visible = True
End With
End Sub
The new form (pop-up, modal)appears for a brief moment, then vanishes. I
tried stripping all the code out of the form's module, but no difference in
behaviour.
Any suggestions?
Thank you.
AliKwok
I can't work out why this code doesn't work:
Private Sub List0_DblClick(Cancel As Integer)
Dim strSQL As String
Dim frmS As Form
strSQL = "SELECT tblBOMSOs.*, tblBOMSOLines.* " _
& "FROM tblBOMSOs INNER JOIN tblBOMSOLines " _
& "ON tblBOMSOs.BOMSOID = tblBOMSOLines.BOMSOID " _
& "WHERE tblBOMSOs.BOMSOID = " & Me.List0.Value
Me.Visible = False
Set frmS = New Form_frmSOEntryTEST
With frmS
.RecordSource = strSQL
.Visible = True
End With
End Sub
The new form (pop-up, modal)appears for a brief moment, then vanishes. I
tried stripping all the code out of the form's module, but no difference in
behaviour.
Any suggestions?
Thank you.
AliKwok