BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Amateur trying to open excel and access from within my c++ b

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
Karl
Guest





PostPosted: Tue Sep 26, 2006 10:19 pm    Post subject: Amateur trying to open excel and access from within my c++ b Reply with quote



Hi Folks

I wonder if someone can help me please. I'm certainly no expert, but have
managed to write some useful applications using C++ builder and paradox in
the past.

Now I need to open an excel sheet and use the data to do a look up in an
access table.

My big problem is that having set up an alias in the BDE, I now pop a TTable
component on the form, set the DatabaseName and all is OK until I try and
select the TableName. At this point I get a dialog asking for user and
password. The fact that I also get this when trying to access the MS access
table makes me think I'm doing somehting daft.

Maybe I'm just thick!

I'd be very grateful for any advice and if necessary I can be emailed at
tar.gus (AT) virgin (DOT) net

Thanks
Karl
Back to top
Jayme Jeffman
Guest





PostPosted: Thu Sep 28, 2006 2:14 am    Post subject: Re: Amateur trying to open excel and access from within my c Reply with quote



Hi,

This is the default behaviour of MS Access, even though you have not set
any password to the database Access itself has done it for you.
Username = Admin Password = "" (blank)

Drop a TDatabase component on the form. Set its alias to the same wich
you have done before on the TTable component. Set the Database property
of the TTable to the TDatabase above. Set the TDatabase::LoginPrompt
to false and you wont be asked for a password anymore.

HTH

Jayme.


"Karl" <tar.gus (AT) virgin (DOT) net> escreveu na mensagem
news:45196116$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi Folks

I wonder if someone can help me please. I'm certainly no expert, but have
managed to write some useful applications using C++ builder and paradox in
the past.

Now I need to open an excel sheet and use the data to do a look up in an
access table.

My big problem is that having set up an alias in the BDE, I now pop a
TTable component on the form, set the DatabaseName and all is OK until I
try and select the TableName. At this point I get a dialog asking for user
and password. The fact that I also get this when trying to access the MS
access table makes me think I'm doing somehting daft.

Maybe I'm just thick!

I'd be very grateful for any advice and if necessary I can be emailed at
tar.gus (AT) virgin (DOT) net

Thanks
Karl
Back to top
Karl
Guest





PostPosted: Fri Sep 29, 2006 8:10 am    Post subject: Re: Amateur trying to open excel and access from within my c Reply with quote



Hi

Thanks vary much for this - I can't believe how much time I wasted looking
for the answer. Gives me heart that I found the same question posted in
several groups unanswered.

Why is it always the simple things that hold you up!

Cheers

Karl
"Jayme Jeffman" <nospan (AT) jeffman (DOT) eng.br> wrote in message
news:451ae926 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

This is the default behaviour of MS Access, even though you have not set
any password to the database Access itself has done it for you.
Username = Admin Password = "" (blank)

Drop a TDatabase component on the form. Set its alias to the same wich
you have done before on the TTable component. Set the Database property
of the TTable to the TDatabase above. Set the TDatabase::LoginPrompt
to false and you wont be asked for a password anymore.

HTH

Jayme.


"Karl" <tar.gus (AT) virgin (DOT) net> escreveu na mensagem
news:45196116$1 (AT) newsgroups (DOT) borland.com...
Hi Folks

I wonder if someone can help me please. I'm certainly no expert, but have
managed to write some useful applications using C++ builder and paradox
in the past.

Now I need to open an excel sheet and use the data to do a look up in an
access table.

My big problem is that having set up an alias in the BDE, I now pop a
TTable component on the form, set the DatabaseName and all is OK until I
try and select the TableName. At this point I get a dialog asking for
user and password. The fact that I also get this when trying to access
the MS access table makes me think I'm doing somehting daft.

Maybe I'm just thick!

I'd be very grateful for any advice and if necessary I can be emailed at
tar.gus (AT) virgin (DOT) net

Thanks
Karl


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.