Click here to Skip to main content
15,910,787 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Wake on lan how to? Pin
Cosby10-May-10 5:45
Cosby10-May-10 5:45 
GeneralRe: Wake on lan how to? Pin
DaveAuld10-May-10 6:26
professionalDaveAuld10-May-10 6:26 
QuestionArchitecture Pin
Archimedes249-May-10 21:56
professionalArchimedes249-May-10 21:56 
AnswerRe: Architecture Pin
Johan Hakkesteegt9-May-10 23:02
Johan Hakkesteegt9-May-10 23:02 
AnswerRe: Architecture Pin
Henry Minute10-May-10 1:18
Henry Minute10-May-10 1:18 
QuestionProblem with syntax with Wizard in a Select/Where statement Pin
Peter Leipzig9-May-10 20:20
Peter Leipzig9-May-10 20:20 
AnswerRe: Problem with syntax with Wizard in a Select/Where statement Pin
Johan Hakkesteegt9-May-10 21:17
Johan Hakkesteegt9-May-10 21:17 
GeneralRe: Problem with syntax with Wizard in a Select/Where statement Pin
Peter Leipzig10-May-10 9:01
Peter Leipzig10-May-10 9:01 
Thanks for the reply. I would like to get this to work properly. This is my first attempt at programing with vb.net and using a database. In the past all of my projects used text files for input an writing. This is very different.

I made the change to the WHERE clause in the Wizard to <pre>... WHERE [Boat Name] = @xid</pre>

Now in my form I have this code:

<pre>OleDbDataAdapter1.SelectCommand.Parameters.Add("@xid", NVarChar).Value = xid
OleDbDataAdapter1.Fill(QuotaPounds1.Balance)</pre>

NVarChar is underlined with the explanation that it is not declared. If I edit this to VarChar it remains underlined with the explanation that it is not declared. If I make it Char, it is still underline but now the explanation is that it is "a Type and so is not a valid expression". I thought that the value in that spot was supposed to be a "Type".

Any guidance you can provide on the syntax here would be most appreciated.
GeneralRe: Problem with syntax with Wizard in a Select/Where statement Pin
Johan Hakkesteegt10-May-10 20:58
Johan Hakkesteegt10-May-10 20:58 
QuestionHelp Me Pin
MdUmair9-May-10 11:46
MdUmair9-May-10 11:46 
AnswerRe: Help Me Pin
Henry Minute10-May-10 1:21
Henry Minute10-May-10 1:21 
QuestionMulty threading question Pin
Pasan1488-May-10 23:08
Pasan1488-May-10 23:08 
AnswerRe: Multy threading question Pin
Dimitri Witkowski9-May-10 0:01
Dimitri Witkowski9-May-10 0:01 
GeneralRe: Multy threading question Pin
Pasan1489-May-10 0:51
Pasan1489-May-10 0:51 
GeneralRe: Multy threading question Pin
Dimitri Witkowski9-May-10 1:29
Dimitri Witkowski9-May-10 1:29 
AnswerRe: Multy threading question Pin
Luc Pattyn9-May-10 1:59
sitebuilderLuc Pattyn9-May-10 1:59 
AnswerRe: Multy threading question Pin
Yosh_10-May-10 2:12
professionalYosh_10-May-10 2:12 
QuestionAdapting a DLL to VB.NET, using PINVOKE Pin
Hrizip8-May-10 8:44
Hrizip8-May-10 8:44 
AnswerRe: enum, hex literals Pin
Luc Pattyn8-May-10 9:29
sitebuilderLuc Pattyn8-May-10 9:29 
GeneralRe: enum, hex literals Pin
Hrizip8-May-10 10:38
Hrizip8-May-10 10:38 
GeneralRe: enum, hex literals Pin
Hrizip8-May-10 22:10
Hrizip8-May-10 22:10 
GeneralRe: enum, hex literals Pin
Luc Pattyn9-May-10 2:02
sitebuilderLuc Pattyn9-May-10 2:02 
GeneralRe: enum, hex literals Pin
Hrizip9-May-10 2:36
Hrizip9-May-10 2:36 
AnswerRe: P/Invoke Pin
Luc Pattyn8-May-10 9:38
sitebuilderLuc Pattyn8-May-10 9:38 
GeneralRe: P/Invoke Pin
Hrizip8-May-10 10:42
Hrizip8-May-10 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.