Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 23rd, 2005, 07:12 AM
chris_539 chris_539 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 chris_539 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question how to copy information from a form to a different table

Hello,

I have a form (the information comes from a query) and i want to copy the information of just one record into a different table.
Do you have any ideas how to do this?

Thanks
Chris

Reply With Quote
  #2  
Old January 23rd, 2005, 02:08 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Create an append query based on the query used as a recordsource for your form. Set the criteria to the current record and then run the append query to add the current record to your other table.

lwells

Reply With Quote
  #3  
Old January 27th, 2005, 10:12 AM
thompson thompson is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 6 thompson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 29 m 2 sec
Reputation Power: 0
I am also having the same sort of problem, however, as i am not a very experienced user, how would one select the current record from the database, i have been trying to do this for a good few days now, and simply cannot manage to get a single record to transfer to another table.

any extra help would be massively appreciated.

Reply With Quote
  #4  
Old January 27th, 2005, 03:38 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Create a query of the table/query that you are using as the recordsource for your form. Change the query to an Append Query and when prompted designate the table where you want the record to be added.

Select the fields in the query grid that will be the same as in the destination table, if all the fields are the same then you can select all of them.

For the criteria, you would use the form's primary key as the filter. Under the primary key field you will put the criteria/sort for your current record. Should be something like this:

[Forms]![frmFormName]![ID]

Now open your form, navigate and find the record that you want to append to your destination table. Leave the form open and open the query in design view and select datasheet view from the tool bar View menu. You should see just the current record that you want to append. When you run the query the record will be appended to your destination table.

Just use the actual name of your form and primary key field in the criteria.

Make a back up of your tables as a precaution before running the query. That way you have a back up copy just in case. Once your satisfied all is working like you want you can delete the backup copy.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > how to copy information from a form to a different table


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 5 hosted by Hostway
Stay green...Green IT