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  

copy record



 
 
Thread Tools Display Modes
  #1  
Old September 1st, 2006, 01:11 PM posted to microsoft.public.access.forms
rml
external usenet poster
 
Posts: 172
Default copy record

I'm using the wizard to create a command button to copy record. It works
fine. How can I exclude the coping of a few fields when I copy the record?
Such as field a, b and c.

Thanks.


  #2  
Old September 1st, 2006, 02:04 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default copy record

The way the wizard does it will not allow you to do this.
The easiest way to get what you want will be to create an Append query that
includes only the fields you want to copy and run the query in the command
button's click event. The best command to use when running an Action query
(Update, Append, Delete) is:
CurrentDb.Execute("MyActionQueryName"), dbFailOnError

"rml" wrote:

I'm using the wizard to create a command button to copy record. It works
fine. How can I exclude the coping of a few fields when I copy the record?
Such as field a, b and c.

Thanks.


 




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 08:29 PM.


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