UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Copy record but leave certain fields blank, Office 2007    
 
   
M4ttyC88
post Nov 10 2010, 08:55 AM
Post #1

UtterAccess Member
Posts: 23
From: Leeds



Hello All

I'm looking to create a macro in my 07 database to copy a current record into a new record but leave certain fields blank.

My database is being used to store details of company IT assets and who they are assigned to. At the moment when we get a batch of new machines in we have to create each new record from scratch which can be quite annoying for the end user if there are around 100 laptos delivered. (IMG:style_emoticons/default/wary.gif)

I've had a look for the past couple of days but i'm getting nowhere fast.

Any help with this would be greatly appreciated
Go to the top of the page
 
+
mike60smart
post Nov 10 2010, 09:05 AM
Post #2

UtterAccess VIP
Posts: 8,458
From: Dunbar,Scotland



Hi

On your Form for the Data input of the New Laptop Details you can place a Button which can be created to "Add New Record"

This will copy the previous Record and then you would need to modify only those fields which need to change
Go to the top of the page
 
+
M4ttyC88
post Nov 10 2010, 09:15 AM
Post #3

UtterAccess Member
Posts: 23
From: Leeds



Hi Mike

Thanks for the reply

I don't know how i missed the "Duplicate Record" function of the button.

That works fine but it would be even better if i could include the "Set Value" function within the macro to set certain fields of the new record as blank.

Any ideas? (IMG:style_emoticons/default/confused.gif)
Go to the top of the page
 
+
mike60smart
post Nov 10 2010, 09:17 AM
Post #4

UtterAccess VIP
Posts: 8,458
From: Dunbar,Scotland



Hi

Convert your Macro to VB and you can add in specifics
Go to the top of the page
 
+
M4ttyC88
post Nov 10 2010, 09:55 AM
Post #5

UtterAccess Member
Posts: 23
From: Leeds



The conversion keeps failing for some reason. No reason given.

It's not the end of the world but i'll just keep working on it. Thansk for your help.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 21st May 2013 - 02:42 AM