PaidtheUmpire
Programmer
I have a program which is using a DataModule, which is working fine.
I now have a second program in the same folder using the same database and same DataModule...
I have the following code, which would list the Teams in the database:
procedure TForm1.FormCreate(Sender: TObject);
begin
DataModule1.ADOTeamNames.Open;
Team1.Items.Clear;
while not DataModule1.ADOTeamNames.EOF do
begin
Team1.Items.Add(DataModule1.ADOTeamNames.FieldBYName('Team_Name').AsString);
DataModule1.ADOTeamNames.Next;
end;
But the program keeps on saying it can't find the database at D:\Database.mdb when it is acutally at G:\GameFolder\Databse.mdb
Any ideas?
Delphi I can't get enough of you.
I now have a second program in the same folder using the same database and same DataModule...
I have the following code, which would list the Teams in the database:
procedure TForm1.FormCreate(Sender: TObject);
begin
DataModule1.ADOTeamNames.Open;
Team1.Items.Clear;
while not DataModule1.ADOTeamNames.EOF do
begin
Team1.Items.Add(DataModule1.ADOTeamNames.FieldBYName('Team_Name').AsString);
DataModule1.ADOTeamNames.Next;
end;
But the program keeps on saying it can't find the database at D:\Database.mdb when it is acutally at G:\GameFolder\Databse.mdb
Any ideas?
Delphi I can't get enough of you.