OpenForm action was cancelled

D

Doug Weller

This used to work fine:

Private Sub Command24_Click()
On Error GoTo Err_Command24_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "Proforma Request"

stLinkCriteria = "[Proforma Number]=" & Me![Proforma Number]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command24_Click:
Exit Sub

Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click

End Sub

But now I get the error message "OpenForm action was cancelled"

I'm guessing that perhaps someone made changes in 'Proforma Request',
but if so what changes would affect this action?

Thanks.

Doug
 
E

Emilia Maxim

---------- [email protected] (Doug Weller) said:
But now I get the error message "OpenForm action was cancelled"

I'm guessing that perhaps someone made changes in 'Proforma Request',
but if so what changes would affect this action?

Doug,

unfortunately we're not clairvoyants to see those changes :) So
please take a look to the code in 'Proforma Request', specially Open,
Load, Current events, and to the Recordsource (or the resp. query),
and post them if you then need further help.

Best regards
Emilia

Emilia Maxim
PC-SoftwareService, Stuttgart
http://www.maxim-software-service.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top