M
mattc66 via AccessMonster.com
I have the following code. If the qryBOMAssy_C1 finds the A_ITEM then it
opens a form called frmBOMAssy_C1. I need to first tell A_ITEM what it is
and I am doing that in the stLink. How would I add that to the DCount?
Dim stDocName As String
Dim stLink As String
stDocName = "frmBOMAssy_C1"
If DCount("A_ITEM", "qryBOMAssy_C1") >= 1 Then
stLink = "[A_ITEM]=" & "'" & Me![ITEM] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLink
Else
DoCmd.OpenForm "frmPopNoBWU"
End If
opens a form called frmBOMAssy_C1. I need to first tell A_ITEM what it is
and I am doing that in the stLink. How would I add that to the DCount?
Dim stDocName As String
Dim stLink As String
stDocName = "frmBOMAssy_C1"
If DCount("A_ITEM", "qryBOMAssy_C1") >= 1 Then
stLink = "[A_ITEM]=" & "'" & Me![ITEM] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLink
Else
DoCmd.OpenForm "frmPopNoBWU"
End If