Re: Pass Parameters to Record Source Query
- From: "Larry Daugherty" <Larry.NoSpam.Daugherty@xxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 21:57:52 -0800
There may still be other ways...
You started defining the problem from inside and then positing limited
solutions. At the highest level, WHY are you trying to do this thing?
I won't play 20 questions but if you explain the motivating objective
before the means to a solution, maybe someone can help.
I wouldn't have posted back but it seems you're going to place some
information in global variables on the splash screen's module. That's
surely workable but the question is "How did you know in advance what
to place there"? And, still, what are you trying to do?
HTH
--
-Larry-
--
"NoVAFolk" <NoVAFolk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4796BA9D-AF10-4A70-A339-0A4EF940789B@xxxxxxxxxxxxxxxx
> Larry:
>
> Thank you. That was to be my next solution but I had hoped that
there was a
> viable solution that did not rely on using a form in the fashion you
> describe. The application has a "splash screen" that is closed after
five
> seconds. I will hide it instead and use that as my source.
>
> (Sure would have been nice if Access allowed a [Modules]! construct,
though!)
>
> "Larry Daugherty" wrote:
>
> > The answer to your question: Yes but there are caveats.
> >
> > Open the form hidden and only make it visible when you want to
see
> > it. Intercept the Close event to make it hidden instead, then
cancel
> > the close event. The risk is that you may not know what record is
> > exposed by the form.
> >
> > In situations like you describe, I run the report from the form.
No
> > need to hide the form, no ambiguities.
> >
> > HTH
> > --
> > -Larry-
> > --
> >
> > "NoVAFolk" <NoVAFolk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:E928EA63-B8E8-4F57-8CC0-E93BE13F8B04@xxxxxxxxxxxxxxxx
> > > I know that I can pass a variable's value to a query by using
the
> > following
> > > construct:
> > >
> > > ...
> > > WHERE [TableName].[ColumnName]=[Forms]![FormName].[ControlName]
> > > ...
> > >
> > > Is there any other method? The ideal would be a reference in the
> > form
> > > "[Modules]![ModuleName].[VariableName]"
> > >
> > > Some background: I have a meeting minutes report that lists
> > attendees in two
> > > parallel coulumns. The content of a column comes from a
subreport,
> > one for
> > > the left column and a similar one for the right column of names.
The
> > record
> > > source of a subreport is a query looks like this:
> > >
> > > SELECT LineNumber
> > > , MeetingKey
> > > , PersonKey
> > > , Division
> > > , Attended
> > > FROM AgendaReportInvitees
> > > WHERE LineNumber<[Forms]![frm_Meeting].[txtRightSide]
> > > ORDER BY LineNumber;
> > >
> > > My problem is that I want to be able to run this report even if
> > > "frm_Meeting" is closed. Obviously when I do that an error is
raised
> > because
> > > the field txtRightSide cannot be found.
> > >
> > > Any suggestions willingly entertained!
> > >
> >
> >
> >
.
- Follow-Ups:
- Re: Pass Parameters to Record Source Query
- From: NoVAFolk
- Re: Pass Parameters to Record Source Query
- References:
- Re: Pass Parameters to Record Source Query
- From: Larry Daugherty
- Re: Pass Parameters to Record Source Query
- Prev by Date: Re: From database to software?
- Next by Date: Re: export a single record to a document of word (template)
- Previous by thread: Re: Pass Parameters to Record Source Query
- Next by thread: Re: Pass Parameters to Record Source Query
- Index(es):
Relevant Pages
|