Reference Books

S

Scott Achs

I am getting ready to create an Access database for my
small business that will track inventory and customers
and other such things, but I am having a dilema on which
book to buy. There are 2 too choose from...

1) Programming Microsoft Office Access 2003 (Core
Reference)
2) Programming Microsoft Visual Basic .NET for Microsoft
Access Databases

I have written applications in VB6 and am making the
transition to .NET now. I have purchased the .NET VB
core Reference guide.

Any idea which book would serve me better.

Thanks,
Scott
 
V

Van T. Dinh

Are you using Access Forms / Reports, etc ...?

If you are, buy the first book.

The second book is probably good if you want to create the
user interface, etc... using VB.NET and you simply use an
Access MDB (JET MDB, to be more accurate) to store the
data.

HTH
Van T. Dinh
MVP (Access)
 
S

scott achs

I want to use VB.NET to create my forms and then access
the data within access. Based upon this you say buy #2?
I heard that that book is not good at explaining how to
use Access w/.NET. What are your opinions...

Scott
 
T

Tony Toews

scott achs said:
I want to use VB.NET to create my forms and then access
the data within access. Based upon this you say buy #2?
I heard that that book is not good at explaining how to
use Access w/.NET. What are your opinions...

You're probably better off asking that question in a VB.NET newsgroup.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
L

Larry Linson

Is there compelling need to access your data via an intranet or over the
Internet? If not, then you might be well advised to create your database
application in Access itself.

The concensus of people who are competent in both is that it is likely to
take 3 - 5 times as much effort to implement the same business database
application in classic VB as in Access. My observation is that it is no less
effort, and perhaps more, to implement the same single-user standalone, or
client-server, application in VB.NET than in classic VB.

Larry Linson
Microsoft Access MVP
 
B

Brendan Reynolds \(MVP\)

Caveat #1: I haven't yet read any books specifically about .NET for Access
developers, so it's possible I may be doing such books an injustice.

Caveat #2: I'm a relative beginner at .NET. I have developed two ASP.NET
apps, but they were simple apps designed as add-ons to existing Access apps
that continue to handle the bulk of the work.

That said ...

Although the terminology you use here is in common use, Scott, including in
Microsoft's own documentation, it's not very accurate and can cause
confusion. When you use a VB app (regardless of whether it is a VB6 app or a
VB.NET app) to access and manipulate data in an MDB, you are not using
Access, you're using the JET database engine. You as a developer may use
Access to design the database, but when the application runs, it does not
use Access - it will run perfectly happily on a PC on which Access is not
installed at all.

The point is, to develop such an app, you don't need to know much about
Access at all. You need a good understanding of the JET SQL dialect, but you
don't need to know how to design or program Access forms or reports, because
you won't be doing that.

As you probably already know, to manipulate data in a .NET app, you use a
data provider. The .NET Framework 1.1 includes four data providers, for OLE
DB, SQL Server, Oracle, and ODBC. To access and manipulate data in a JET
database, you use the OLE DB provider, via classes in the System.Data.OleDb
namespace, such as OleDbConnection, OleDbDataAdapter and OleDbCommand, while
to access and manipulate data in a SQL Server database you would commonly
use classes in the System.Data.SqlClient namespace, such as SqlConnection,
SqlDataAdapter, and SqlCommand.

The key point here is that, in my experience so far, there are very few
differences in the use of the corresponding classes in the different
namespaces. For the most part, they support the same properties, methods and
events, and behave in the same way. For that reason, and until I have an
opportunity to read one, I'm somewhat mystified as to how anyone could write
an entire book about the subject. Any good book on .NET database development
will cover the differences between using the System.Data.SqlClient namespace
and the System.Data.OleDb namespace, because the latter is used with other
data sources as well as JET for which there is no more specific provider,
including versions of SQL Server prior to version 7.

The only differences that I can think of off-hand (if anyone more
experienced with .NET knows of other important differences, please don't
hesitate to jump in here) are ...

a) The connection strings differ.
b) No stored procedures in JET.
c) No named parameters with the OleDbCommand - you have to specify
parameters by their ordinal position in the Parameters collection.

For these reasons, you should find that any good book on database
development using VB.NET will be useful to you, it really doesn't need to
say a lot about Access, just make sure that it covers the OleDb provider and
doesn't focus exclusively on SQL Server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top