p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 30th, 2006, 02:41 AM
Registered User
 
Join Date: Aug 2006
Location: , , United Kingdom.
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old September 1st, 2006, 07:06 PM
Thearon's Avatar
Wrox Author
Points: 1,200, Level: 13
Points: 1,200, Level: 13 Points: 1,200, Level: 13 Points: 1,200, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 380
Thanks: 0
Thanked 5 Times in 5 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old September 6th, 2006, 06:55 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old September 11th, 2006, 06:12 PM
Thearon's Avatar
Wrox Author
Points: 1,200, Level: 13
Points: 1,200, Level: 13 Points: 1,200, Level: 13 Points: 1,200, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 380
Thanks: 0
Thanked 5 Times in 5 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old September 12th, 2006, 05:55 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old September 12th, 2006, 03:22 PM
Registered User
 
Join Date: Aug 2006
Location: , , United Kingdom.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7 (permalink)  
Old September 12th, 2006, 03:24 PM
Registered User
 
Join Date: Aug 2006
Location: , , United Kingdom.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #8 (permalink)  
Old December 21st, 2006, 11:10 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #9 (permalink)  
Old January 3rd, 2007, 02:11 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic 2005 Express CForce Visual Basic 2005 Basics 1 June 22nd, 2008 11: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
Visual Basic express edition chapter 3 matlin BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 0 March 18th, 2007 05:56 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



All times are GMT -4. The time now is 08:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc