Arg81
Well-known member
Just trying to redevelop an app in 2.0 from 1.1 and this is probably an easy answer but I'm just being dumb  
 
 
In my 1.1 app, I had a pop up screen load before the menu, with 3 radio buttons - site1, site2 and site3.
Each site has its own backend database on the SQL server.
 
Selecting a site set a global variable to TRUE
 
All i did was have 3 connections on each form, and the dataAdapters.Connections were set using the global variable, i.e.
 
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
 
Now with VS 2005, I see that the whole data access is structured completely different!!
 
Is there a way for me to still have the popup asking for site, then dependant on the answer chose a connection that the DataSet tables then use?
 
Thanks for any help.
 
regards,
	
		
			
		
		
	
				
			 
 In my 1.1 app, I had a pop up screen load before the menu, with 3 radio buttons - site1, site2 and site3.
Each site has its own backend database on the SQL server.
Selecting a site set a global variable to TRUE
All i did was have 3 connections on each form, and the dataAdapters.Connections were set using the global variable, i.e.
			
				VB.NET:
			
		
		
		If varSite1 = True Then
   me.dataAdapter1.SelectCommand.Connection = me.conSite1
   me.dataAdapter1.InsertCommand.Connection = me.conSite1
   me.dataAdapter1.UpdateCommand.Connection = me.conSite1
ElseIf varSite2 = True Then
   me.dataAdapter1.SelectCommand.Connection = me.conSite2
   me.dataAdapter1.InsertCommand.Connection = me.conSite2
   me.dataAdapter1.UpdateCommand.Connection = me.conSite2
End IfNow with VS 2005, I see that the whole data access is structured completely different!!
Is there a way for me to still have the popup asking for site, then dependant on the answer chose a connection that the DataSet tables then use?
Thanks for any help.
regards,
 
	 
 
		 
 
		 
 
		

 
			 
 
		 
 
		