Group:  Microsoft Access » microsoft.public.access.macros
Thread: GoToControl troubles

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

GoToControl troubles
Gina K 06.07.2006 14:06:01
I’m using a macro with several GoToControl steps:
GoToControl sbfDataEntry
GoToControl sbfGrade

This works just fine. Then I try to add a third step, GoToControl Score
(where Score is a field name on the sbfGrade subform). Then the macro craps
out with “There is no field named ‘Score’ in the current record."

Any ideas on why this is happening? I checked the field name about a
million times.

Thanks.

RE: GoToControl troubles
scubadiver 06.07.2006 14:34:02
Hi,

I posed a similar problem to put focus on a particular field.

I was told the first GoToControl should be the name of the control which
holds the subform (in my case "department subform")

Is the control which holds your subform called "sbfGrade" or "sbfGrade
subform"?

"Gina K" wrote:

[Quoted Text]
> I’m using a macro with several GoToControl steps:
> GoToControl sbfDataEntry
> GoToControl sbfGrade
>
> This works just fine. Then I try to add a third step, GoToControl Score
> (where Score is a field name on the sbfGrade subform). Then the macro craps
> out with “There is no field named ‘Score’ in the current record."
>
> Any ideas on why this is happening? I checked the field name about a
> million times.
>
> Thanks.
>
RE: GoToControl troubles
Gina K 06.07.2006 16:45:02
Thanks! I've got it now.


"scubadiver" wrote:

[Quoted Text]
> Hi,
>
> I posed a similar problem to put focus on a particular field.
>
> I was told the first GoToControl should be the name of the control which
> holds the subform (in my case "department subform")
>
> Is the control which holds your subform called "sbfGrade" or "sbfGrade
> subform"?
>
> "Gina K" wrote:
>
> > I’m using a macro with several GoToControl steps:
> > GoToControl sbfDataEntry
> > GoToControl sbfGrade
> >
> > This works just fine. Then I try to add a third step, GoToControl Score
> > (where Score is a field name on the sbfGrade subform). Then the macro craps
> > out with “There is no field named ‘Score’ in the current record."
> >
> > Any ideas on why this is happening? I checked the field name about a
> > million times.
> >
> > Thanks.
> >

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net