Okay, I have a project where I created a local database using VB 2010 (mapInfo.sdf). I added a new datasource and had it create the database from that. When I select the Create New Map button, I want it to do 2 things. First, it needs to populate an existing table in my database with certain information (this part works correctly). Second, I want to create a new table whose name is whatever name has been selected for the map.
My question is, do I need to use the oledb and SQL statements to do this (connection, command, SQLString), or is there a way to create a table using the dataSet that holds the other data table? Something like (though I know this is probably not the syntax) DataSet1.Tables.Add(mapName) and then somehow create the fields in a similar way? I have another workaround but I'd like to be able to do it this way if possible. Thank you for any help...I am new to using databases with my applications but am learning more and more.
Robert
My question is, do I need to use the oledb and SQL statements to do this (connection, command, SQLString), or is there a way to create a table using the dataSet that holds the other data table? Something like (though I know this is probably not the syntax) DataSet1.Tables.Add(mapName) and then somehow create the fields in a similar way? I have another workaround but I'd like to be able to do it this way if possible. Thank you for any help...I am new to using databases with my applications but am learning more and more.
Robert