|
-
Sep 21st, 2011, 06:48 PM
#5
Re: data type mismatch in criteria expression
 Originally Posted by Ram2Curious
@phpman
The ID field in the access database is expecting a number. You can use the Integer.Parse Function.
vb.net Code:
Dim labelvalue As String =label3.Text
Dim value As Integer = Integer.Parse(label3.Text)
Why would you need to parse the contents of a Label? That Label must have been populated using a number in the first place. It's that number that should be being used.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|