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  

Is there a VBA method for copying a single record in form view?



 
 
Thread Tools Display Modes
  #1  
Old January 15th, 2010, 07:12 PM posted to microsoft.public.access.forms
Mac Hardy
external usenet poster
 
Posts: 1
Default Is there a VBA method for copying a single record in form view?

I want to copy the last record of a table (while in form view). How?
  #2  
Old January 15th, 2010, 07:15 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Is there a VBA method for copying a single record in form view?

Access doesn't really have a concept of "last record of a table". Tables are
unsorted sacks of data: Access will stick records wherever it wants.

The only way to ensure order is to use a query with an appropriate ORDER BY
clause.

Assuming you've got an appropriate ORDER BY clause, you can use the TOP 1
predicate.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Mac Hardy" wrote in message
...
I want to copy the last record of a table (while in form view). How?



 




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


All times are GMT +1. The time now is 10:16 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.