Hi dears,
I am about to throw the pc from the window, so hopefully someone will have pity of the this newbe of mine...
The following in a standard VBA routine doesn't work
I get a run-time 2465
if I copy paste exactly the same in the immediate window
It works exactly as it suppose to..
Why? Cannot figure it out at all...
Thanks to anyone who will help!
I am about to throw the pc from the window, so hopefully someone will have pity of the this newbe of mine...
The following in a standard VBA routine doesn't work
I get a run-time 2465
Code:
Private Sub Comando2_Click()
DoCmd.OpenReport "newreport", acViewPreview, , "[QQ_Retrieve nolo export]![ragione sociale]= '" & Forms(Opnenewreportex).Controls(CasellaCombinata0) & "'"
End Sub
if I copy paste exactly the same in the immediate window
Code:
DoCmd.OpenReport "newreport", acViewPreview, , "[QQ_Retrieve nolo export]![ragione sociale]= '" & Forms(Opnenewreportex).Controls(CasellaCombinata0) & "'"
It works exactly as it suppose to..
Why? Cannot figure it out at all...
Thanks to anyone who will help!