Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
Password Reminder
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 30th, 2006, 01: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

Reply With Quote
  #2 (permalink)  
Old September 1st, 2006, 06:06 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
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
Reply With Quote
  #3 (permalink)  
Old September 6th, 2006, 05: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
Reply With Quote
  #4 (permalink)  
Old September 11th, 2006, 05:12 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
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
Reply With Quote
  #5 (permalink)  
Old September 12th, 2006, 04: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
Reply With Quote
  #6 (permalink)  
Old September 12th, 2006, 02: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
Reply With Quote
  #7 (permalink)  
Old September 12th, 2006, 02: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
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

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

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.