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  

Extract data from a record to input into another record from same table



 
 
Thread Tools Display Modes
  #1  
Old November 30th, 2007, 03:36 AM posted to microsoft.public.access.forms
John_In_Northern_California via AccessMonster.com
external usenet poster
 
Posts: 1
Default Extract data from a record to input into another record from same table

I'm the registrar for a Little League and I track all of the information
about players, coaches, sponsors, etc. When I come across an instance where
siblings are playing, I would like to create a new record and "autofill" the
input form with some of information (address, phone email, etc.) from a
sibling's record by using a single "Add Sibling" button. Thanks for any help -
John

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200711/1

  #2  
Old November 30th, 2007, 05:32 AM posted to microsoft.public.access.forms
Boyd Trimmell aka HiTechCoach via AccessMonster.com
external usenet poster
 
Posts: 45
Default Extract data from a record to input into another record from same table

Sounds like you may want to update your table structures to be better
normalized to handle your data so that you eliminate duplicate data.

I would probably create some type of "household" or "family" record the links
the siblings and holds the shared address, phone email, etc



John_In_Northern_California wrote:
I'm the registrar for a Little League and I track all of the information
about players, coaches, sponsors, etc. When I come across an instance where
siblings are playing, I would like to create a new record and "autofill" the
input form with some of information (address, phone email, etc.) from a
sibling's record by using a single "Add Sibling" button. Thanks for any help -
John


--
Boyd Trimmell
aka HiTechCoach
http://www.hitechcoach.com
http://www.officeprogramming.com

Message posted via http://www.accessmonster.com

  #3  
Old November 30th, 2007, 02:55 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Extract data from a record to input into another record from same table

I would agree with Boyd if this were something more complicated than rosters
for a Little League! But try this:

Private Sub CopyPartialRecordButton_Click()

'Copy fields to variables
MyFirstField = Me.FirstField
MySecondField = Me.SecondField
MyThirdField = Me.ThirdField

'Go to a new record
DoCmd.GoToRecord , , acNewRec

'Reverse the process and plug old values into new record
Me.FirstField = MyFirstField
Me.SecondField = MySecondField
Me.ThirdField = MyThirdField

End Sub

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com

 




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 06:23 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.