A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Go to previous record



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2004, 08:09 PM
Ronnie
external usenet poster
 
Posts: n/a
Default Go to previous record

I have a form which is open. I have set up a command button to perform a series of actions. I would like this command button to also go to the previous record on the form. Any advice? I think I have to use the DoCmd.GoToRecord, but I am unsure how to use this. I am new to access and Visual basic.

The form I have is called fmservices.

Thanks

Ronnie

  #2  
Old July 11th, 2004, 08:18 PM
Byron
external usenet poster
 
Posts: n/a
Default Go to previous record

Try adding the following line:

DoCmd.GoToRecord acActiveDataObject, , acPrevious

HTH

Byron
-----Original Message-----
I have a form which is open. I have set up a command

button to perform a series of actions. I would like this
command button to also go to the previous record on the
form. Any advice? I think I have to use the
DoCmd.GoToRecord, but I am unsure how to use this. I am
new to access and Visual basic.

The form I have is called fmservices.

Thanks

Ronnie

.

  #3  
Old July 11th, 2004, 08:30 PM
Ronnie
external usenet poster
 
Posts: n/a
Default Go to previous record

Thanks Bryon

Worked a treat

"Byron" wrote:

Try adding the following line:

DoCmd.GoToRecord acActiveDataObject, , acPrevious

HTH

Byron
-----Original Message-----
I have a form which is open. I have set up a command

button to perform a series of actions. I would like this
command button to also go to the previous record on the
form. Any advice? I think I have to use the
DoCmd.GoToRecord, but I am unsure how to use this. I am
new to access and Visual basic.

The form I have is called fmservices.

Thanks

Ronnie

.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the value in previous record to current record? Praveen Manne Using Forms 4 June 21st, 2004 09:54 PM
How to get the value in previous record to current record? Praveen Manne General Discussion 4 June 21st, 2004 09:54 PM
Filling a new record with values from a previous record Linda Using Forms 3 June 18th, 2004 10:59 AM
Avoid Creating A Duplicate Record Mark New Users 4 May 11th, 2004 01:52 AM


All times are GMT +1. The time now is 08:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.