Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 9th, 2003, 12:29 PM
Dean Warrington Dean Warrington is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 5 Dean Warrington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Copy Record Button that copies Selective fields only

Copy Record Button that copies Selective fields only

I am using Access 2000

I am currently using the “Copy Record” function to copy a whole record within my Form.

What I really want to do is only copy the same 5 fields each time and for the remaining fields to be empty and ready to enter information upon.



Can I add to the “Copy Record” code in some way so that only selected fields are copied to the next entry rather than all fields?

The Copy Record code is:
Private Sub Command28_Click()
On Error GoTo Err_Command28_Click


DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
StartPoint.SetFocus

Exit_Command28_Click:
Exit Sub

Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click

End Sub

Thank you for any help
Comments on this post
JimmyGosling agrees!

Reply With Quote
  #2  
Old May 11th, 2003, 06:43 AM
Dean Warrington Dean Warrington is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 5 Dean Warrington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have managed to solve this copy problem with this piece of code

Private Sub SelectCopy_Click()
DoCmd.GoToRecord , , acNewRec
Combo56.SetFocus
With Me.RecordsetClone
.MoveLast
Me.StudentsName = !StudentsName
Me.Mark = !Mark
Me.NumberofAppearance = !NumberofAppearance
Me.Examiner = !Examiner
Me.StudentLevel = !StudentLevel
End With
End Sub

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Copy Record Button that copies Selective fields only


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway