Re: DoCmd.OpenReport
- From: "J_Goddard via AccessMonster.com" <u37558@uwe>
- Date: Wed, 21 Nov 2007 20:08:48 GMT
Hi -
This sounds like what might happen if a partner name has an apostrophe in it,
e.g. Jake's Machine Shop.
As for the Partner_ID being asked for again, what is the record source for
the report? If it is a query, it sounds like the query has a parameter in it,
which is unnecessary because the Docmd.OpenReport.... filters the records.
Another possibility is that the report contains a sort field which is not in
the source query (typing error maybe?)
HTH
John
TechTutors wrote:
Dim ReportName
If Me.Action = 1 Then ReportName = "Rpt_ActivationBounty_Detail"
If Me.Action = 2 Then ReportName = "Rpt_RevenueShare_Detail"
If Me.Action = 3 Then ReportName = "Rpt_ClientSummary"
If Me.Action = 4 Then ReportName = "Rpt_CheckRequisition"
If Me.Action = 5 Then ReportName = "Rpt_ItemCodes_NONVAR_AUDIT"
If Me.Action = 6 Then ReportName = "Rpt_ItemCodes_VAR_AUDIT"
DoCmd.OpenReport ReportName, acViewPreview, , "Partner_ID=" & Me.Lkp
The client selects a Partner from a drop-down list... Then selects which
report they want to open for that Partner. They Hit GO! and an "enter
parameter" fields comes up asking them to type the Partner_ID... They type
it in and it works just fine...
... Except for a handful of partners... I recieve a Run-Time error 3075...
Syntax error (missing operator) in query expression
'(Partner_ID=SAIDPARTNER)'.
Any help would greatly be appreciated!
Thanks!
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200711/1
.
- Follow-Ups:
- Re: DoCmd.OpenReport
- From: TechTutors
- Re: DoCmd.OpenReport
- Prev by Date: KeyDown Event and vbKeyNumpad (?)
- Next by Date: Re: DoCmd.OpenReport
- Previous by thread: Re: DoCmd.OpenReport
- Next by thread: Re: DoCmd.OpenReport
- Index(es):
Relevant Pages
|