If IsNull(POList) Then 'no PO selected - show no records PurchaseOrderDetailsF.Form.RecordSource = "Select * From PurchaseOrderDetailsF Where PurchaseOrderID=-1" Else 'a PO selected, show just those records PurchaseOrderDetailsF.Form.RecordSource = "Select * From PurchaseOrderDetailsF Where PurchaseOrderID=" & POList End If
End Sub
When the sub runs in the after update event, the following error is reported: The recordsource 'Select * From PurchaseOrderDetailsF Where PurchaseOrderID=1' specified on this form or report does not exist
When the sub routine runs from the OnOpen Event, the following error is reported: The recordsource 'Select * From PurchaseOrderDetailsF Where PurchaseOrderID=-1' specified on this form or report does not exist.
What is my problem?
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft Access 328.