Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 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 February 1st, 2011, 04:25 PM
Registered User
 
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default New GUID

Hi All

Firstly I'm using Visual Studio 2008 and Access 2000. The book is Beginning Visual Basic 2005 Databases, Chapter 5 Exercise 2.

I have construted the code exactly but when I populate the combobox I get the following error "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)." for this line of code:

'Add the required parameter for the query
objCommand.Parameters.Add("@ProjectID", OleDbType.Guid, 16).Value = _
New Guid(cb1.SelectedValue.ToString)

Any suggestions as to what I am doing wrong would be greatly appreciated.

Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
New Guid problem..... jack_hilary BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 0 October 5th, 2009 12:36 PM
GUID Generator ukamed BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 September 7th, 2009 07:19 PM
Ask IIS for a GUID? Raconteur ASP.NET 2.0 Professional 2 April 25th, 2007 03:25 PM
GUID cdhansen BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 October 21st, 2006 04:56 AM
Creating a GUID xgbnow Visual C++ 1 May 6th, 2004 11:10 AM





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