Re: DoCmd.OpenReport
- From: TechTutors <TechTutors@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Nov 2007 12:14:04 -0800
The fields are set to text and the reports are working off queries, of
course. I'm not sure what you mean by what the value of the field is when it
fails. If the incorrect information is put in the parameter, then the
actions will fail and no reports will come up. I hope that answered your
question.
In this case, however, there are - in fact - reports for these "SAIDPARTNERS"
I hope that answered your question.
"Dirk Goldgar" wrote:
"TechTutors" <TechTutors@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:B4B11EFD-A076-4894-A2D9-DDE529C4E4CC@xxxxxxxxxxxxxxxx
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)'.
What's the value of Me.Lkp when it fails? What type of field is Partner_ID?
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
- Follow-Ups:
- Re: DoCmd.OpenReport
- From: Dirk Goldgar
- Re: DoCmd.OpenReport
- References:
- Re: DoCmd.OpenReport
- From: Dirk Goldgar
- Re: DoCmd.OpenReport
- Prev by Date: Re: DoCmd.OpenReport
- Next by Date: Re: Help with determining deadlines
- Previous by thread: Re: DoCmd.OpenReport
- Next by thread: Re: DoCmd.OpenReport
- Index(es):
Relevant Pages
|