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