By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,117 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,117 IT Pros & Developers. It's quick & easy.

A97: Why is there no example for GoToRecord Action HELP section in Access 97?

P: n/a
MLH
Access 97 has left examples out of much of HELP
that was included in Access 2.0. Anybody know
why? Or better still, where to find examples.

For example, Access 97 has no example code in
its help section on the GoToRecord Action. Ver
2.0 had all this...
GoToRecord ActionAccess Basic
Syntax

DoCmd GoToRecord [objecttype, objectname] [, record] [, offset]

Argument Description

objecttype One of the following intrinsic constants:
A_TABLE
A_QUERY
A_FORM
objectname A string expression that is the valid name of an
object of the type selected with the objecttype argument.

record One of the following intrinsic constants:

A_PREVIOUS
A_NEXT
A_FIRST
A_LAST
A_GOTO
A_NEWREC
If you leave this argument blank, the default (A_NEXT) is
assumed.
offset A numeric expression that represents the number of records to
move forward or backward if you specify A_NEXT or A_PREVIOUS for the
record argument, or the record to move to if
you specify A_GOTO for the record argument. The expression must
result in a valid record number.

Remarks

If you leave the objecttype and objectname arguments blank, the active
object is assumed.
You can leave an optional argument blank in the middle of the syntax,
but you must include the argument's comma. If you leave one or more
trailing arguments blank, don't use a comma following the
last argument you specify.

Example

This example uses the GoToRecord action to make the seventh record in
the form My Form current.

DoCmd GoToRecord A_FORM, "My Form", A_GOTO, 7
Nov 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
MLH wrote:
Access 97 has left examples out of much of HELP
that was included in Access 2.0. Anybody know
why? Or better still, where to find examples.

For example, Access 97 has no example code in
its help section on the GoToRecord Action. Ver
2.0 had all this...
[snip]

Example

This example uses the GoToRecord action to make the seventh record in
the form My Form current.

DoCmd GoToRecord A_FORM, "My Form", A_GOTO, 7


In Access 97 help it says:
<--------
The following example uses the GoToRecord method to make the seventh
record in the form Employees current:

DoCmd.GoToRecord acDataForm, "Employees", acGoTo, 7
--------->

(did you not see the [example] hyperlink in the help page?)

--
[OO=00=OO]
Nov 13 '05 #2

P: n/a
MLH
I saw it in HELP for the gotorecord method, but not the gotorecord
action. Actually, I like the gotorecord method better anyway. I only
asked about this because I have found HELP in Access 97 a bit
confusing. Being new to it, that's understandable. I find it harder
to copy & paste the examples now.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In Access 97 help it says:
<--------
The following example uses the GoToRecord method to make the seventh
record in the form Employees current:

DoCmd.GoToRecord acDataForm, "Employees", acGoTo, 7
--------->

(did you not see the [example] hyperlink in the help page?)


Nov 13 '05 #3

P: n/a
Be happy with Help in Access 97.
You'll want to save those help files if you ever upgrade, by the way.
Access Help only becomes worse as the versions increase!

Nov 13 '05 #4

P: n/a
MLH
That does not worry me. I'm too old to ever get
past A97.
Be happy with Help in Access 97.
You'll want to save those help files if you ever upgrade, by the way.
Access Help only becomes worse as the versions increase!


Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.