Programmatically create shapefiles from a table

I am using MapWinGIS in MS Access with VBA

I need to programmatically create shapefiles from a table. Right now my map is hardcoded with VBA DIM statements as follows: the file names and layer handles are hardcoded too.

   Dim ShapeFile_Boundary As New MapWinGIS.Shapefile
    Dim ShapeFile_Bridges As New MapWinGIS.Shapefile
    Dim ShapeFile_Culverts As New MapWinGIS.Shapefile
    Dim ShapeFile_Highways As New MapWinGIS.Shapefile

My knowlege of C## is limited, and I am having a hard time translating the C## examples to VBA.

I need a VBA example of WinMapGIS functions to programmatically

  • Create the shapefiles
  • open the shapefiles
  • create layer handles

I’m stuck.

Thanks, stu

Hello Stu.

I see have a couple postings. To start off, try searching the forum using keywords like “ms access” or “vba” and see if you find any helpful hints.