Visual Basic 5.0 Pro w/ Access 95

Visual Basic 5.0 Pro w/ Access 95

Post by Bill Gran » Wed, 31 Dec 1997 04:00:00



Hi:

I am trying to write a generic application in VB which can access an Access
95 database.  I am able to do this ok using the Jet and hard coding the
database location (e.g. C:\db\etc...).  However, what I would like to do is
soft code the database location and make it changeable in one place; that
way, I can take advantage of bound controls but not commit the application
to one place to find the database.

My question is can VB5.0 Professional do this?  In reading I find I have
ODBCDirect capabilities but I am not quite sure what this means.  Can I set
up an ODBC32 database and use the DSN name and still use bound controls?  I
tried this but was not able to get the database to connect properly.

Another question: are there any disadvantages to using VB5 as a GUI for an
Access95 database?  The reason I would like to code the GUI in VB5 is
because we are upgrading shortly to SQL Server and I would like to be able
to quickly migrate our applications.

Thanks in advance for the help!

Bill Grant

 
 
 

Visual Basic 5.0 Pro w/ Access 95

Post by Matt Child » Wed, 31 Dec 1997 04:00:00


You can soft code the location of the database and you don't necessarily
need ODBC to do this for you.

I use a method of storing the location of the database in the registry.  You
can use GetSetting and SaveSetting to store all kinds of data in the
registry.  I simply write a small utility that lets the user locate the
database (if there is no setting in the registry at all - it prompts them
with a dialog to locate the database on the network - or wherever it may
be).  When the program fires, it reads the setting out of the registry and
stores the path name into a variable.  I reference that variable whenever I
connect to the database.

Hope this helps....

Matt


>Hi:

>I am trying to write a generic application in VB which can access an Access
>95 database.  I am able to do this ok using the Jet and hard coding the
>database location (e.g. C:\db\etc...).  However, what I would like to do is
>soft code the database location and make it changeable in one place; that
>way, I can take advantage of bound controls but not commit the application
>to one place to find the database.

>My question is can VB5.0 Professional do this?  In reading I find I have
>ODBCDirect capabilities but I am not quite sure what this means.  Can I set
>up an ODBC32 database and use the DSN name and still use bound controls?  I
>tried this but was not able to get the database to connect properly.

>Another question: are there any disadvantages to using VB5 as a GUI for an
>Access95 database?  The reason I would like to code the GUI in VB5 is
>because we are upgrading shortly to SQL Server and I would like to be able
>to quickly migrate our applications.

>Thanks in advance for the help!

>Bill Grant


 
 
 

1. 22200-FL-Fort Lauderdale-Visual Basic-ORACLE-Windows 95-Visual Basic 4.0, Oracle 7.0, Windows 95

******** VISIT US AT http://www.selectjobs.com ***********
=
*************************************************************
Company    : Technisource
Website    : http://www.tsi.net
Job Title  : Visual Basic 4.0, Oracle 7.0, Windows 95
Location   : Fort Lauderdale, FL
Job Type   : Contract
============================
Technisource is an innovative and rapidly growing national contract, consulting
and staffing organization Technisource has a long list of satisfied clients and
hundreds of high caliber consultants with rewarding careers in the technical
industry Technisource offers the best solution whether our clients' needs are
for one engineer, a team or a complete outsourcing unit Since 1987 Technisource
has specialized in the technical consulting industry and is the most qualified
resource to turn for your next project Over 600 opportunities are listed on our
website, WWWTSINET for engineers, programmers, designers, technicians and
technical writers

DURATION 6 - 9 months

Travel Required          :None
Educational Requirements :None
=
Required Skills
* Visual Basic  Version: 4.0
* ORACLE  Version: 7.0
* Windows 95
=
=
Contact Information:
Reference : SF20274

Technisource
1901 NW 62nd St.,  #401

Ft. Lauderdale, FL 33309

Phone: 800-940-1111 EXT 237
   -   -
Fax No: 888-290-2990
***********************  http://www.selectjobs.com  ****************************

                The On-Line, On-Target Job Finder for Computer Professionals

** Post Your Resume and see results immediately!! ** Always free **
** Post jobs for 30 days for $40, unlimited postings $250/month
** Matching Resumes E-mailed daily
**  Your ads are virtually guaranteed to be seen by jobseekers on the NET' **

                    ** Automatic Posting to **
   ** Yahoo            ** Americas Job Bank    ** Career City
   ** HeadHunter.Net   ** Classifieds 2000     ** Usenet Newsgroups
               *** OVER 20 MILLION HITS/MONTH COMBINED !!! ***

***********************  http://www.selectjobs.com  ****************************

2. US-CA-Simi Valley-Senior SQL Server DBA

3. Converting MS-Access 95 to Visual Basic 5.0

4. DataList problems...(ADO)

5. Printing Access reports from visual basic 5.0 pro

6. Dynamic widbet label???

7. Help Access 95 , Visual Basic 4.0

8. dbaccess - termcap entry too long

9. Visual Basic 4.0 App Access 95 to 97

10. Visual Basic and Access 95

11. JOB: US Visual Basic Developers (2) - VB/MS-Access/Win-NT/Win 95/OLE/MFC

12. Visual Basic 5.0 vs. Visual C++ 5.0

13. Can I use Visual Foxpro 5.0 and Visual Basic 5.0