| Author | Topic | 
                            
                                    | XerxesAged Yak Warrior
 
 
                                        666 Posts | 
                                            
                                            |  Posted - 2010-04-01 : 16:23:19 
 |  
                                            | I have the followin SQL code (within MS ACCESS 2007)SELECT * INTO TOTAL_TIX         FROM ALPHA_TICKETS UNIONSELECT * FROM GAMMA_TICKETS UNIONSELECT * FROM KAPPA_TICKETS UNIONSELECT * FROM SIGMA_TICKETS UNIONSELECT * FROM OMEGA_TICKETS UNIONGO;But when I attempt to run it, I receive this funny statement:"An action query cannot be used for a row source."Since when is a SELECT statement not a welcome command in ACCESS?  Anyone with a way to work around this? II have no choice but to start the process with the amalgamation of all my ticket files.Thanks.Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!  |  | 
       
                            
                       
                          
                            
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts |  | 
                            
                       
                          
                            
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2010-04-01 : 16:42:54 
 |  
                                          | Hi Tara....let's presume that last UNION isn't there. I simply posted a generic version of what I was working on.Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!   |  
                                          |  |  | 
                            
                       
                          
                            
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts |  | 
                            
                       
                          
                            
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2010-04-01 : 17:02:52 
 |  
                                          | Great idea! Thanks, but I'm still curious...why is that message generated? It doesn't make sense.Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!   |  
                                          |  |  | 
                            
                       
                          
                            
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts |  | 
                            
                       
                          
                            
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2010-04-01 : 17:11:23 
 |  
                                          | Thanks, Tara! I appreciate your help!Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!   |  
                                          |  |  | 
                            
                       
                          
                            
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts |  | 
                            
                       
                          
                            
                                    | madhivananPremature Yak Congratulator
 
 
                                    22864 Posts | 
                                        
                                          |  Posted - 2010-04-02 : 02:17:16 
 |  
                                          | Have you tried this?SELECT * INTO TOTAL_TIXFROM (SELECT * FROM ALPHA_TICKETS UNIONSELECT * FROM GAMMA_TICKETS UNIONSELECT * FROM KAPPA_TICKETS UNIONSELECT * FROM SIGMA_TICKETS UNIONSELECT * FROM OMEGA_TICKETS ) as tMadhivananFailing to plan is Planning to fail |  
                                          |  |  | 
                            
                       
                          
                            
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2010-04-02 : 12:22:30 
 |  
                                          | Awesome idea, Madhivanan! I'll try it, Thanks!Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!   |  
                                          |  |  | 
                            
                       
                          
                            
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2010-04-02 : 12:55:53 
 |  
                                          | quote:Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!Originally posted by madhivanan
 Have you tried this?SELECT * INTO TOTAL_TIXFROM (SELECT * FROM ALPHA_TICKETS UNIONSELECT * FROM GAMMA_TICKETS UNIONSELECT * FROM KAPPA_TICKETS UNIONSELECT * FROM SIGMA_TICKETS UNIONSELECT * FROM OMEGA_TICKETS ) as tTHIS WORKED!MadhivananFailing to plan is Planning to fail
 
   |  
                                          |  |  | 
                            
                            
                                |  |