HI all,<BR>When I am using GetPrimarykeys Method to get the primary key of a table it is saying Variable not defined. Can Any one help me in this regord. Thhis I am using in a function where I am writing the following code. Actually I want to get the primary key of the table..<BR>GetPrimaryKeys psTableName,lvprimarykeys<BR>where Ps tablename is the table name for which i want the primary key and lvPrimarykeys is the return valueinto whivh I want the primary key of the table..<BR>Can ANy one help me Pls..<BR>Thanx in Anticipation<BR>Naveen