Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Amateur trying to open excel and access from within my c++ builder application - please help!!
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 15th February 17:42
karl
External User
 
Posts: 1
Default Amateur trying to open excel and access from within my c++ builder application - please help!!



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@virgin.net

Thanks
Karl
  Reply With Quote


 


2 15th February 17:42
jayme jeffman
External User
 
Posts: 1
Default Amateur trying to open excel and access from within my c++ builder application - please help!!



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@virgin.net> escreveu na mensagem
news:45196116$1@newsgroups.borland.com...
  Reply With Quote
3 17th February 16:08
karl
External User
 
Posts: 1
Default Amateur trying to open excel and access from within my c++ builder application - please help!!


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
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666