Click here to Skip to main content
15,925,133 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to write html in vb?? and post that html in the asp panel?? [modified] Pin
mimimimilaw24-Jul-06 16:20
mimimimilaw24-Jul-06 16:20 
AnswerRe: How to write html in vb?? and post that html in the asp panel?? Pin
Dave Sexton25-Jul-06 0:53
Dave Sexton25-Jul-06 0:53 
QuestionGlobal change to a standard toolstrip [modified] Pin
Gilles Plante24-Jul-06 9:30
Gilles Plante24-Jul-06 9:30 
AnswerRe: Global change to a standard toolstrip Pin
Dave Sexton25-Jul-06 0:45
Dave Sexton25-Jul-06 0:45 
GeneralRe: Global change to a standard toolstrip [modified] Pin
Gilles Plante25-Jul-06 5:53
Gilles Plante25-Jul-06 5:53 
QuestionProblems with SQL to an Access Database Pin
Joshua Boyle24-Jul-06 9:27
Joshua Boyle24-Jul-06 9:27 
AnswerRe: Problems with SQL to an Access Database Pin
Colin Angus Mackay24-Jul-06 20:26
Colin Angus Mackay24-Jul-06 20:26 
GeneralRe: Problems with SQL to an Access Database [modified] Pin
Joshua Boyle25-Jul-06 3:56
Joshua Boyle25-Jul-06 3:56 
Thank you for the response. I used your string exactly (changing "INFO" to "INTO" only and inserting my own data and this is what it looks like:

strSQL = "INSERT INTO tblEvents (Planner, Name, Date, Time, Location, Description, Attendees) VALUES(?,?,?,?,?,?,?)"

Then I create all my parameters as follows:

<br />
oleParams(0) = New OleDbParameter("Planner", cboEventPlanner.Text)<br />
oleParams(1) = New OleDbParameter("Name", txtName.Text)<br />
oleParams(2) = New OleDbParameter("Date", dtpDate.Text)<br />
oleParams(3) = New OleDbParameter("Time", txtTime.Text)<br />
oleParams(4) = New OleDbParameter("Location", txtLocation.Text)<br />
oleParams(5) = New OleDbParameter("Description", txtDescription.Text)<br />
oleParams(6) = New OleDbParameter("Attendees", strAttendees)<br />


Finally, I add the parameters as follows:

oleCommand.Parameters.AddRange(oleParams)

I have tried every kind of arrangement of the strSQL string. Additionally, I have tried adding each parameter individually instead of as a range. I even explicity declared 7 oleDbParamter objects and stuffed each one with the respective parameters. No matter what I do, it gives me the following error when the Submit button on my form is clicked:

Syntax error in INSERT INTO statement.

Any ideas what I'm doing wrong here? I'm at a complete loss.


-- modified at 9:58 Tuesday 25th July, 2006
GeneralRe: Problems with SQL to an Access Database Pin
Joshua Boyle25-Jul-06 4:16
Joshua Boyle25-Jul-06 4:16 
GeneralRe: Problems with SQL to an Access Database Pin
Colin Angus Mackay25-Jul-06 4:52
Colin Angus Mackay25-Jul-06 4:52 
GeneralRe: Problems with SQL to an Access Database Pin
ChandraRam25-Jul-06 19:04
ChandraRam25-Jul-06 19:04 
Questionusing a data reader to add items to an arraylist Pin
ssbelfast24-Jul-06 7:59
ssbelfast24-Jul-06 7:59 
AnswerRe: using a data reader to add items to an arraylist Pin
Dave Sexton25-Jul-06 0:40
Dave Sexton25-Jul-06 0:40 
GeneralRe: using a data reader to add items to an arraylist Pin
ssbelfast25-Jul-06 1:33
ssbelfast25-Jul-06 1:33 
QuestionUser Defined Type workaround using classes Pin
teepeetoo24-Jul-06 7:50
teepeetoo24-Jul-06 7:50 
QuestionLosing Global Variables Pin
ken11024-Jul-06 7:17
ken11024-Jul-06 7:17 
AnswerRe: Losing Global Variables Pin
Mandar Patankar24-Jul-06 11:25
Mandar Patankar24-Jul-06 11:25 
GeneralRe: Losing Global Variables Pin
ken11024-Jul-06 11:49
ken11024-Jul-06 11:49 
QuestionExcel macro Help Pin
awalle24-Jul-06 7:06
awalle24-Jul-06 7:06 
QuestionTableAdapter, Database Tutorial Pin
cstrader23224-Jul-06 6:38
cstrader23224-Jul-06 6:38 
AnswerRe: TableAdapter, Database Tutorial Pin
Dave Sexton25-Jul-06 0:36
Dave Sexton25-Jul-06 0:36 
AnswerRe: TableAdapter, Database Tutorial Pin
Nouvand4-Aug-06 0:19
Nouvand4-Aug-06 0:19 
QuestionDeclare Global variables in crystal reports Pin
ImranIBM24-Jul-06 6:19
ImranIBM24-Jul-06 6:19 
AnswerRe: Declare Global variables in crystal reports Pin
cs_senthil25-Jul-06 0:00
cs_senthil25-Jul-06 0:00 
QuestionProblem in Connection with Sql Server 2000 Pin
karansharma24-Jul-06 4:54
karansharma24-Jul-06 4:54 

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.