The results of a SQL statement are posted in a listbox titled, lstResolution. I want to open another form (frmEdit) when a user double-clicks an item from the list, based on the field tblResolution.Number. Here is my code for that:
DoCmd.OpenForm "frmEdit", acNormal, , "[tblResolution.Number] = " & Me.lstResolution, acFormReadOnly, acDialog
Every time I double-click an item I get a Run-time Error '2501', saying "The OpenForm action was cancelled."
Any Suggestions?
DoCmd.OpenForm "frmEdit", acNormal, , "[tblResolution.Number] = " & Me.lstResolution, acFormReadOnly, acDialog
Every time I double-click an item I get a Run-time Error '2501', saying "The OpenForm action was cancelled."
Any Suggestions?