I have a function I have used for years that exports the Table Schema to a .xsd file for saving in subversion source control.  One table of 162 gives me error 31532 when I try to export it.  
I can export it as a local table, and I can open the backend and export it there. I have relinked it. Did a compact and repair on both the front and back database. Did a Decompile, recompile, and still get the same error on the one table.
The problem table does have a Calculated field. Other than that it is standard.
The export line follows. td is a TableDef object, CleanFilesNames strips out all spaces and non alpha characters.
	
	
	
		
Does anybody know if ExportXML will work with calculated fields?  Is there something else I should be checking?
 I can export it as a local table, and I can open the backend and export it there. I have relinked it. Did a compact and repair on both the front and back database. Did a Decompile, recompile, and still get the same error on the one table.
The problem table does have a Calculated field. Other than that it is standard.
The export line follows. td is a TableDef object, CleanFilesNames strips out all spaces and non alpha characters.
		Code:
	
	
	Application.ExportXML ObjectType:=acExportTable, DataSource:=td.Name, _
    SchemaTarget:=sExportLocation & "Table_" & CleanFileNames(td.Name) & ".xsd"