Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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 ASP Free Forums Sponsor:
  #1  
Old May 12th, 2008, 05:24 AM
ocaronzo ocaronzo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: North York, Ontario
Posts: 54 ocaronzo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 38 sec
Reputation Power: 5
Forms - Automaticaly moving data to another table if part of a certain category

Hello Everyone,

Is there a way that when someone enters data into a form, if the person who they are entering is part of a certain group then it is automaticaly transfered to a different table and then deleted from the table they were originaly entered in?

Thank you!

Reply With Quote
  #2  
Old May 12th, 2008, 07:55 AM
Fowler_ko Fowler_ko is online now
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 271 Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 5 h 37 m 56 sec
Reputation Power: 84
This would not be a good way about going about the problem...

I'm guessing that you have a table and want separate (identical) tables for each group? If this is the case leave all the data in a single table and have a field within this table showing the group the person is a member of.

You can then easily report on a given group using queries and/or reports. Trust me this will make your life a lot easier in the long run…

If I’ve misread your problem or any other queries please let me know!
Comments on this post
don94403 agrees!

Reply With Quote
  #3  
Old May 12th, 2008, 10:49 AM
ocaronzo ocaronzo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: North York, Ontario
Posts: 54 ocaronzo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 38 sec
Reputation Power: 5
Hey,

I have a form that goes into a table of sales. There are two tables in total. One is sales for individuals and one is for companies. Sometimes I get individulas that really should be entered into the company table. So what I want is if the individual is ented into the individuals form....i need that moved to the company form....is that posible.

It's confusing to describe.

Reply With Quote
  #4  
Old May 13th, 2008, 02:23 AM
Fowler_ko Fowler_ko is online now
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 271 Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 5 h 37 m 56 sec
Reputation Power: 84
Again I think you would be better off with only one table and a field, maybe a tickbox, for company/individual.

If this is going to be impractical then the way I would move the record would be to execute an append query then a delete query from a button on you form. The syntax for the append and delete query would be along the following lines, depending on table and field names you are using:

Code:
INSERT INTO tblCompanySales SELECT tblIndividualSales.*
FROM tblIndividualSales WHERE tblIndividualSales.ID = <Record ID to Move>;


Code:
DELETE tblIndividualSales.* FROM tblIndividualSales WHERE tblIndividualSales.ID = <Record ID to Move>;


Although you would definitely be better off with only one table, it will make things so much easier, especially when reporting, for example when you want overall sales reports showing company and individuals sales combined…

Last edited by Fowler_ko : May 13th, 2008 at 02:27 AM.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Forms - Automaticaly moving data to another table if part of a certain category


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 3 hosted by Hostway