Public Shared oData As DataView oData = New DataView ' Get all records from Message.dbf oData = Framework.VFPSQLAdapterDataView("SELECT UPPER(Key) AS Key,UPPER(Module) AS Module,French,English FROM Message", toForm.lcStartupDirectory) ' As we are reading the entire messages table into a view, we have to create a primary key ' in order to accelerate the search. oData.PrimaryKey = New DataColumn() {oData.Columns("Key"), oData.Columns("Module")}The oData.PrimaryKey gives an error at development time. It says PrimaryKey is not a member of a view.