I have a form which has a button to open a related form. The 1st form is an inventory item, the 2nd form is the PO for that item (and possibly add'l items). In many cases, no PO has not been entered yet. If I try to open the form based on a linking POID, I get <br><i>Run-time error '3075':<br>Syntax error (missing operator) in query expression 'QuoteID ='</i><br><br>I thought I had fixed this with the following code months ago, but just noticed this is not working. Any ideas? TIA.<br><br>Private Sub cmdPO_Click()<br>On Error GoTo Err_cmdPO_Click<br><br> Dim stDocName As String<br> Dim stLinkCriteria As String<br><br> stDocName = "frmPO"<br> DoCmd.RunCommand acCmdSaveRecord<br> stLinkCriteria = "[POID]=" & Me![POID]<br> DoCmd.OpenForm stDocName, , , stLinkCriteria<br><br>Exit_cmdPO_Click:<br> Exit Sub<br><br>Err_cmdPO_Click:<br> If Err.Number = 3075 Then<br> MsgBox "Enter a value in this field to display details."<br> Resume Exit_cmdPO_Click<br> Else<br> MsgBox Err.Description<br> Resume Exit_cmdPO_Click<br> End If<br> <br>End Sub