|
|
 |
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.
|
 |

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
|
|
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
|

September 1st, 2006, 07:06 PM
|
 |
Wrox Author
|
|
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 380
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
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
|

September 6th, 2006, 06:55 AM
|
|
Registered User
|
|
Join Date: Sep 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

September 11th, 2006, 06:12 PM
|
 |
Wrox Author
|
|
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 380
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
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
|

September 12th, 2006, 05:55 AM
|
|
Registered User
|
|
Join Date: Sep 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

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
|
|
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
|
|

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
|
|
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
|
|

December 21st, 2006, 11:10 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 3rd, 2007, 02:11 AM
|
|
Registered User
|
|
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi,all
this is from
tejas
give e-book link of crystal reports
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |