Wrox Programmer Forums
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2006, 01:41 AM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Basic 2005 Express Edition

Hi,

I'm new to programming. Can I use Visual Studio 2005 Express Edition with this book?

My first issue is on page 50. I cannot see the "ODBCDataAdapter" control in the tool box.

....must I upgrade to Visual Studio 2005 Professional Edition?

Thanks,

Kevin

 
Old September 1st, 2006, 06:06 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Kevin,

You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.

Thearon
 
Old September 6th, 2006, 05:55 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thearon

I am also using VB Express Edition (the price was right), quite successfully so far with one problem (which may or may not be related to the fact that it is the Express Edition and not VB.Net 2003)

In the LoadGroups procedure (chapter 7), the LastUpdateDate field in the ListBox control displays only a g (or whatever letter I used to indicate a format type) when the code from the book is entered as written. (I ran the code downloaded from the website and it works fine). The problem seems to be in the line of code:

objListViewItem.SubItems.Add( _
         Format(objGroupsDS.Tables("Groups").Rows (intIndex).Item( _
          "LastUpdateDate"), "g"))


If I add a variable to the procedure and then Format the variable, it works fine.

Dim dteFormattedDate As Date
...
...

dteFormattedDate = objGroupsDS.Tables("Groups").Rows(intIndex).Item(" LastUpdateDate")
objListViewItem.SubItems.Add(Format(dteFormattedDa te, "g"))

I also have to add the variable and then Format the variable in the lvwGroups_Click event when filling in the Groups detail section.

Any thoughts would be appreciated.
TIA
Hank
 
Old September 11th, 2006, 05:12 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Try this line of code and see if it works for you:

                    objListViewItem.SubItems.Add( _
                        Format(DirectCast(objGroupsDS.Tables("Groups").Row s(intIndex).Item( _
                        "LastUpdateDate"), DateTime), "g"))

Thearon
 
Old September 12th, 2006, 04:55 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Theron

Thanks for you reply and suggestion. While "DirectCast" does not work, (I get a "Specified cast is not valid" error), CType does work and I can use the original code in the lvwGroups_click event.

Thanks for pointing me in the right direction
Hank
 
Old September 12th, 2006, 02:22 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Thearon
 Kevin,

You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.

Thearon
 
Old September 12th, 2006, 02:24 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Thearon,

I decided to update myself and bought Visual Studio 2005 - Professional Edition. I also bought your VB2005 book and the VB 2005 Databases.

I am making great progress now!

Regards,

Kevin


Quote:
quote:Originally posted by Thearon
 Kevin,

You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.

Thearon
 
Old December 21st, 2006, 11:10 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tools-> Choose Toolbox items -> OdbcDataAdapter

Okay

Happy Programming!!!

Quote:
quote:Originally posted by thomasks
 Hi,

I'm new to programming. Can I use Visual Studio 2005 Express Edition with this book?

My first issue is on page 50. I cannot see the "ODBCDataAdapter" control in the tool box.

....must I upgrade to Visual Studio 2005 Professional Edition?

Thanks,

Kevin

 
Old January 3rd, 2007, 02:11 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,all
this is from
tejas
give e-book link of crystal reports






Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic 2005 Express CForce Visual Basic 2005 Basics 1 June 22nd, 2008 10:21 PM
Visual Web Developer 2005 Express Edition - Limits snew BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 November 15th, 2007 01:00 PM
Is C# 2005 Express Edition enough? eqv41dp C# 2005 0 January 4th, 2007 01:41 AM
Visual Basic Express 2005 SQL error thomas38 Reporting Services 0 February 16th, 2006 02:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.