Subj : Re: Duplicate Database name To : borland.public.cpp.borlandcpp From : Ed Mulroy Date : Mon Oct 10 2005 10:35 pm It is possible that temp is a special name to whatever database you are using. Try using a different name. .. Ed > Cenk wrote in message > news:434ae3fc@newsgroups.borland.com... > > I m getting Edatabase error : duplicate database name! > Here is the code, > > Database1->DatabaseName = "TEMP"; > Database1->Connected = true; > > DataSource1->DataSet = Table1; > > Table1->TableName = Edit1->Text; > Table1->DatabaseName = "TEMP"; > Table1->Active = true; > > DBGrid1->DataSource = DataSource1; > DBGrid1->Columns->Add(); > > Bytheway, is there a way to dynamically open tables in a DBGrid??? thanks .